Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: grep question using multiple lines

by bradcathey (Prior)
on Dec 28, 2008 at 13:58 UTC ( [id://732887]=note: print w/replies, xml ) Need Help??


in reply to Re: grep question using multiple lines
in thread grep question using multiple lines

This is what I was looking for, basically. Your original script still failed to clear the inbetween lines, but when I added one more \r before the alternation operator it worked to prefection:

^.*constant=(\w+@\w+\.\w+).*\r|^.*\r

returned:

barney@gmail.comwilma@aol.com

Perfecto! Thanks eye.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found