Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Delete line if REGEX == true

by Anonymous Monk
on Jul 08, 2008 at 12:46 UTC ( [id://696198]=note: print w/replies, xml ) Need Help??


in reply to Delete line if REGEX == true

Its very easy to do. I just do in a find replace window that excepts regular expressions if "brother" is the string your looking for heres an example. Replace ^.*brother.*\n with nothing ( blank)

Replies are listed 'Best First'.
Re^2: Delete line if REGEX == true
by Anonymous Monk on Jul 16, 2008 at 06:08 UTC
    that wont remove lines without the "brother string" so... 1 2 3 brother 3 2 1 4 5 6 sister 7 8 9 will reduce to brother 4 5 6 sister 7 8 9 which then becomes the problem as originally stated.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found