in reply to Re: regular expression issue
in thread regular expression issue

Hello, I am not getting what I want. I extracted the out put from the first part ie.
if (m/Reply issued by (.*?):(.*)/) { my $issuer = $1; my $msg = $2; print " $issuer \n $msg \n"; }
the $issuer is as below, you can see the \b interpreted as regex \b. ASlrssrajSRVPARTSP3930 is the Out put

Replies are listed 'Best First'.
Re^3: regular expression issue
by Anonymous Monk on Jun 06, 2008 at 10:03 UTC
    In a double-quoted string, the sequence  "\b" is a backspace control code. See following examples in double- and single-quoted strings.

    perl -wMstrict -e "my $s = qq(abcdX\befg); print $s" abcdefg perl -wMstrict -e "my $s = qq(abcdX \befg); print $s" abcdXefg perl -wMstrict -e "my $s = q(abcdX\befg); print $s" abcdX\befg perl -wMstrict -e "my $s = q(abcdX \befg); print $s" abcdX \befg

    See Quote and Quote like Operators in perlop.

      Thanks, Thats perfect. Good to know that difference.I was using the double quoted string, that causes the problem Thanks alot