Regex works (taken from stackoverlow. Need to spend more time learning regex or beautifulsoup or lxml).

Yay for learning new stuff.