Trying to get text validated in the format
SY300
Now, this works for anything less than 5 characters but if I put in SY300a it accepts it.
I tried taking the delimiter off but PHP throws an error.
Any ideas?
$pattern = '/[S][Y][0-9][0][0]/';
if (preg_match($pattern, $divlevel)!= 1) etc.