Hi all,

I would like to perform regular expression replace (e.g. removing 
everything from within tags in a XML file) with multiple-line pattern. 
How can I do this?

where = open("filename").read()
multilinePattern = "^<tag> .... <\/tag>$"
re.search(multilinePattern, where, re.MULTILINE)

Thanks greatly,
Zdenek
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to