Question: I'm developing a asp.net application and I use some components. I have a component with a resource file with a lot of keys in English. I need to translate it to Portuguese (Brazil, pt-br). I would like to know, if is there any way to translate it with a program? Or if is there a program that do this?

Thanks

Answer: 
```
>>> import re
>>> re.findall("{{(.*?)}}", "this {{is}} a sample {{text}}")
['is', 'text']

```
You could use a regular expression to match anything that occurs between `{{` and `}}`. Will that work for you? 

Generally speaking, for tagging certain strings in a large body of text, a [suffix tree](http://en.wikipedia.org/wiki/Suffix_tree) will be useful.