On Sunday 27 Jun 2010 11:27:02 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...)
>
You can use a regex. Untested:
s/\e[\[01]m//g
Regards,
Shlomi Fish
> Thanks
>
> Erez
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy
God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl