Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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?
[choroba]: http://cpan.org
[FloydATC]: perl -MCPAN and the cpan command uses www.perl.com/CPAN
[FloydATC]: I was able to download and install what I needed manually, that's not the issue
[choroba]: So o conf urllist

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-01-24 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (256 votes). Check out past polls.

    Notices?