> 02chevy
> 02 chevy
> 2chevy
> chevy
> 
> my regex is as follows but does not work-  
> 
> $newyr = substr($yr[0],0,2);
> 
> if ($newyr =~ /([0-9])/) {

> It is not catching the second number correctly.
> 

are you just trying to match 2 digits in the substr? 
Try  if ($newyr =~ /( \d{2} )/)



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to