If I understand correctly what you're trying to do, I think HTML::TokeParser may do a better job for you as it breaks everything up in to tokens and you could do your substitutions easily enough and build your HTML back based on your tokens.
Hope that helps!
There is no emoticon for what I'm feeling now.
In reply to Re: Regex's on Text of HTML (using HTML::Parser)
by Popcorn Dave
in thread Regex's on Text of HTML (using HTML::Parser)
by rjahrman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |