![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: Re: Re: Multiline Regexby the_slycer (Chaplain) |
on Feb 16, 2001 at 09:09 UTC ( #58794=note: print w/replies, xml ) | Need Help?? |
Actually, the regex "mostly works".
The problem with this regex is that the DATA does not have an immediate newline following it (there is a space). If the space is removed - or a simple (.+)? is added between the IP match and the newline, the first regex works fine. I'll leave someone else to do the benchmarks :-) That's of course, if the original poster wants the new line before the line with the IP
In Section
Seekers of Perl Wisdom
|
|