I've searched and searched but can't seem to find the answer I need. I'm still wrapping my head around the whole regex thing don't know enough to solve this problem, which seems far to simple.
I have a string "<a href="#">London<span>35.2miles</span></a>"
I need to chop everything apart from "London", but everything I try results in "London<span>35.2miles</span>" I cannot seem to get rid of the span tags and text, as well as the a tags.
atag a dom element?