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";
In reply to Re^2: Regular Expression
by Sun751
in thread Regular Expression
by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |