<div dir="ltr">Hi,<div><br></div><div>It looks like chr(27) </div><div>the code which creates it is the following: printf "\33[1mSOME TEXT\33[0m"<br><br><div class="gmail_quote">On Sun, Jun 27, 2010 at 12:18 PM, Gabor Szabo <span dir="ltr"><<a href="mailto:szabgab@gmail.com">szabgab@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I guess it is a chr(27) at the beginning, right?<br>
<font color="#888888">Gabor<br>
</font><div class="im"><br>
On Sun, Jun 27, 2010 at 12:08 PM, Erez David <<a href="mailto:introx@gmail.com">introx@gmail.com</a>> wrote:<br>
> s/\e[\[01]m//g does't do the job. since the first [ is not a real character<br>
> it is a meta character...<br>
><br>
> On Sun, Jun 27, 2010 at 12:02 PM, Shlomi Fish <<a href="mailto:shlomif@iglu.org.il">shlomif@iglu.org.il</a>> wrote:<br>
>><br>
>> On Sunday 27 Jun 2010 11:27:02 Erez David wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I am reading a file which has some meta characters in it.<br>
>> > This meta characters are: ^[[1m and ^[[0m which are used to bold some<br>
>> > text<br>
>> > out.<br>
>> ><br>
>> > I am looking for the best way to remove this meta characters from the<br>
>> > file<br>
>> > before I parse it. (Whether remove it by regex or any other way...)<br>
>> ><br>
>><br>
>> You can use a regex. Untested:<br>
>><br>
>> s/\e[\[01]m//g<br>
>><br>
>> Regards,<br>
>><br>
>> Shlomi Fish<br>
>><br>
>> > Thanks<br>
>> ><br>
>> > Erez<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Perl mailing list<br>
<a href="mailto:Perl@perl.org.il">Perl@perl.org.il</a><br>
<a href="http://mail.perl.org.il/mailman/listinfo/perl" target="_blank">http://mail.perl.org.il/mailman/listinfo/perl</a><br>
</div></div></blockquote></div><br></div></div>