I'm trying to use regex to parse an XML
file (in my case this seems the simplest way).
For example a line might be:
line='<City_State>PLAINSBORO, NJ 08536-1906</City_State>'
To access the text for the tag City_State, I'm using:
attr = re.match('>.*<', line)
but nothing is being returned.
Can someone point out what I'm doing wrong?