match re compile textarea name utrans textarea re DOTALL search data m

1
2
3
4
match = re.compile('<textarea name=utrans.*?>(.*?)</textarea>',
re.DOTALL).search(s)
data = match.groups()[0]
return unicode(data, "utf-8").strip()