I am looking for a regex to match all HTML tags, except <p>
and </p>
that includes the tag content. I am developing in ColdFusion.
There was an earlier post about matching tags except <p>
and </p>
, but I need to grab everything between the tags as well. For instance, the following should match in their entirety:
<a href="http://www.google.com">Google</a>
and
<em>Some text here</em>
but not
<p>Some text and tags here</p>
Any ideas on how to accomplish this?