Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Multiline Regex

by the_slycer (Chaplain)
on Feb 16, 2001 at 09:09 UTC ( #58794=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Multiline Regex
in thread Multiline Regex

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Multiline Regex
by kilinrax (Deacon) on Feb 16, 2001 at 20:54 UTC
    Ack, sorry, nasty artefact of cut and paste :-/
    Well spotted and ++ to that man :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2023-09-28 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?