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

Re^3: Simple regexp question

by ikegami (Patriarch)
on Mar 31, 2006 at 07:21 UTC ( #540400=note: print w/replies, xml ) Need Help??


in reply to Re^2: Simple regexp question
in thread Simple regexp question

perl -pe "s/[#*]//g" infile > outfile
or in-place:
perl -i.bak -pe "s/[#*]//g" filename
If you want to delete the entire line, then
perl -pe "next if /[#*]/" infile > outfile
or in-place:
perl -i.bak -pe "next if /[#*]/" filename

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2023-06-05 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (24 votes). Check out past polls.

    Notices?