Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: deleting special lines from files

by Grygonos (Chaplain)
on Sep 02, 2004 at 12:59 UTC ( #387892=note: print w/replies, xml ) Need Help??


in reply to Re^4: deleting special lines from files
in thread deleting special lines from files

The grep symbols are a regular expression operator... its the m// operator with the m omitted (which is very valid and quite common) The regex he posted would not take those out as well. you would need to use an assertion after the semicolon in the current regex... to say... all this.. not followed by a ;.. the match says.
m/ #Match ^#From the beginning of the line \S+#One or more non space characters ;#followed by a semi-colon /
Anyone feel free to correct me if I'm wrong there.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-06-25 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (81 votes). Check out past polls.

    Notices?