http://www.perlmonks.org?node_id=909192


in reply to How to parse out unwanted characters in a text file using Perl

$str =~ s/[^data,]//g;

or perhaps you have some other definition of 'unwanted characters'?

  • Comment on Re: How to parse out unwanted characters in a text file using Perl
  • Download Code