[Israel.pm] Removing meta characters (^[[1m and ^[[0m) from a file

guy keren choo at actcom.co.il
Sun Jun 27 01:52:12 PDT 2010


Erez David wrote:
> Hi,
> 
> I am reading a file which has some meta characters in it.
> This meta characters are: ^[[1m and ^[[0m which are used to bold some 
> text out.
> 
> I am looking for the best way to remove this meta characters from the 
> file before I parse it. (Whether remove it by regex or any other way...)
> 
> Thanks
> 
> Erez

not sure if it'll help, but try pipine the file via 'col -b', and see if 
this helps.

--guy


More information about the Perl mailing list