in reply to Re: Regular Expression
in thread Regular Expression
If i am just interested in "BBB", above code returning 1 rather than BBB, Could any one guide me why? and how can I achieve this? Please. Cheersmy $line = "AAA:BBB:CCC"; my $var = $line =~ /.*?:(\w+):.*?$/; print "$var\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regular Expression
by NetWallah (Canon) on Jun 24, 2009 at 05:01 UTC |