I am having a hard time building a regular expression to grab some words from a HTML text.
Let's say I have the following :
<p style="padding-left :12px">SOME_TEXT_I_WANT</p><p>SOME_OTHER_TEXT</p>
*SOME_TEXT_I_WANT* and *SOME_OTHER_TEXT* can be either a bunch of words like "SOME RANDOM TEXT" or HTML text like "<strong>SOME BOLD TEXT</strong>
"
My goal is to extract those texts with one regex.
some text
and some other text
and yet more text`? Regexps and HTML are always a brittle combination. – Piskvor left the building Dec 07 '10 at 13:43