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 can use the following:

```
res = re.findall("{{([^{}]*)}}", a)
print "a python list which contains %s and %s" % (res[0], res[1])

```

Cheers