You might try HTML::Parser. Your start and end handlers can just write what they read, and have your substitution take place in the text handler.
In reply to Re: Highlight your result
by voyager
in thread Highlight your result
by tune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |