and
I need to match and remove all tags using a regular expression in Perl. I have the following:
<\\\\??(?!p).+?>
But this still matche
Assuming that this will work in PERL as it does in languages that claim to use PERL-compatible syntax:
/<\/?[^p][^>]*>/
EDIT:
But that won't match a or tag, unfortunately.
This, perhaps?
/<\/?(?!p>|p )[^>]+>/
That should cover tags that have attributes, too.