good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Please comment on my regular expression.by suaveant (Parson) |
on Jun 24, 2009 at 14:35 UTC ( [id://774416]=note: print w/replies, xml ) | Need Help?? |
The only thing I might suggest is specifying the delimiter that is show before the TAG as well, just to help make sure you don't match anything in the middle of the text (though it may be the case that with this data that is impossible...) You probably might as well make that other .+ a .+? just to save the regexp engine unnecessary work.
In Section
Seekers of Perl Wisdom
|
|