Say I have a string looks like <a href="/wiki/Greater_Boston" title="Greater Boston">Boston–Cambridge–Quincy, MA–NH MSA</a>
How can I use re
to get rid of links and get only the Boston–Cambridge–Quincy, MA–NH MSA
part?
I tried something like match = re.search(r'<.+>(\w+)<.+>', name_tmp)
but not working.