Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl Monk, Perl Meditation
 
PerlMonks  

Re: regex help please

by ikegami (Pope)
on Oct 27, 2006 at 20:24 UTC ( #581013=note: print w/ replies, xml ) Need Help??


in reply to regex help please

From "not the second",I presume both lines are present in the variable being searched. (Previous posts assumed you were reading a line at a time.)

The following two snippets will stop matching at the first <0a>, not the second.

s/rcvtime.*?<0a>//;
s/rcvtime(?:(?!<0a>).)*<0a>//;


Comment on Re: regex help please
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-04-20 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls