Preg match inside html tags

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


<font color=“#008F00”>…</font>
<a href=“” 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!