Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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>//;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581013]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2016-12-10 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (165 votes). Check out past polls.