Use ^ to start from beginning of the line.
$no = '77373737377837'; $newno = $1 if $no=~m#^([0-9]{2})#; print "\n$newno";
In reply to Re: The first two number
by gopalr
in thread The first two number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |