Re: Parse ansi control codes for color

2004-05-06 Thread John W. Krahn
"Paul D. Kraus" wrote: > > I am pipeing the input from a linux command (Pal) in color (I can > disable color but don't want to) to a perl script. I need to use > a regex that can match a line that looks like this. > > ^[[1mWed > > If i try and test like this > > if ( /\^\[\[1mWed/ ) > > i

Parse ansi control codes for color

2004-05-06 Thread Paul D. Kraus
I am pipeing the input from a linux command (Pal) in color (I can disable color but don't want to) to a perl script. I need to use a regex that can match a line that looks like this. ^[[1mWed If i try and test like this if ( /\^\[\[1mWed/ ) it fails. Paul D. Kraus ~=~=~=~=~=~=~=~=~=~