Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 having an uproarious good time at the Monastery: (5)
As of 2015-07-03 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls