considering this:
input = """Yesterday<person>Peter</person>drove to<location>New York</location>"""
how can one use regex patterns to extract:
person: Peter
location: New York
This works well, but I dont want to hard code the tags, they can change:
print re.findall("<person>(.*?)</person>", input)
print re.findall("<location>(.*?)</location>", input)