It's only reasonable to be regex parsing HTML code if
- The text you're looking at was output by some process very free of human intervention, so your way sure that it's going to be absolutely regular. No extra spaces, no funny capitalization, no varying between 'right' and "right".
But you've got that 'i' at the end of the regexes. Which is usually good practice. However, in this context, it tells me that, no, you're not absolutely confident that there won't be any variance in the capitalization. Hmmmm....
Maybe you should be in the market for a good HTML Parser.
throop