Preg match inside html tags

I’m looking to get the text within html tags:

eg:

<font color=“#008F00”>…</font>
<a href=“http://www.google.com” title=“”>…</a>

I would like to specify the html tag and just get the text inbetween opening and closing tags, ignoring all the attributes there may or may not be!

What pattern would be needed?

Use [fphp]DomDocument[/fphp]::loadHTML(), not RegExp. :wink:

ah i’ve never seen that before!