Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Regex helpby Helter (Chaplain) |
on Oct 01, 2002 at 19:55 UTC ( [id://202092]=note: print w/replies, xml ) | Need Help?? |
Updated, I missed the multi-line part...added a s to my regexp
This actually ran? I would think the parser would have halted when it got to the </script> part...it should have ended the regex. You probably want to try something like this: Which outputs: This uses a nifty trick, you can use (just about) anything for the start/end characters for a regexp/search-replace to avoid conflicts in the matching/replacing string. Here I have used the percent signs instead. Have fun!
In Section
Seekers of Perl Wisdom
|
|