Hi all,
I am trying to check for a valid year in a field.
The data is :
02chevy
02 chevy
2chevy
chevy
my regex is as follows but does not work-
$newyr = substr($yr[0],0,2);
if ($newyr =~ /([0-9])/) {
then do stuff
It is not catching the second number correctly.
Results are;
02
02
2c
the 2c should fail?
Any help?
Ned Cunningham
POS Systems Developer
Monro Muffler Brake & Service
200 Holleder Parkway
Rochester, New York 14615
(585) 647-6400 ext 310
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]