Definitely use "a proper HTML parser." You'll be glad you did.
But also, be aware of CPAN modules such as Regexp::Common. (In fact, there are quite a few modules in the "Regexp" family. Very many patterns have already been thoroughly done.)
In reply to Re: regex in perl
by Anonymous Monk
in thread regex in perl
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |