301
The best answer on StackOverflow: Using RegEx to parse HTML
(stackoverflow.com)
Post funny things about programming here! (Or just rant about your favourite programming language.)
It can be done with simple regex of the kind proposed in various answers there iff the html is known to be limited to the subset of html where that sort of thing can easily be made to work. The question does not tell us whether or not that is the case, so everyone is free to make their own assumptions and argue as if they know what's going on.