Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Processing XML with Regular Expressions

Python: Processing XML with Regular Expressions
{filelink=16801}

import re
regex = r'(w)'
xml_data = open('c:/teste.xml').read()
result = re.search(regex,xml_data)
if result:
   print result.group(1)

Users who found this page were searching for:

  • processing xml with regular expressions

No comments yet.

Leave a Comment