in reply to Re^2: Simple regexp question
in thread Simple regexp question
or in-place:perl -pe "s/[#*]//g" infile > outfile
If you want to delete the entire line, thenperl -i.bak -pe "s/[#*]//g" filename
or in-place:perl -pe "next if /[#*]/" infile > outfile
perl -i.bak -pe "next if /[#*]/" filename
|
---|
In Section
Seekers of Perl Wisdom