"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/ ) > > it fails.
The sequence '^[' can be represented in double quoted strings or regular expressions as "\c[" or "\e" (or "\033" or "\x1B".) if ( /\e\[1mWed/ ) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>