in reply to Need a regular expression to check the first digit
I think that is what you are looking for.my $var = '503009496'; my $i = index($var, '5');
|
---|
Replies are listed 'Best First'. | |
---|---|
A reply falls below the community's threshold of quality. You may see it by logging in. |