Whilst I understand the concept of finding a matching pattern using eregi I am struggling a little with the syntax - can you help?
I need to match the following:
TWO UPPER CASE A-Z
SINGLE DIGIT 0-9
MANDATORY SPACE
SINGLE DIGIT 0-9
TWO UPPER CASE A-Z
and currently have:
$pattern1="[A-Z]{2}[1-9][:space:][1-9][A-Z]{2}";
Alaso need to match:
TWO UPPER CASE A-Z
TWO DIGITS 0-9
MANDATORY SPACE
SINGLE DIGIT 0-9
TWO UPPER CASE A-Z
and currently have:
$pattern2="[A-Z]{2}[1-9]{2}[:space:][1-9][A-Z]{2}";
Many Thanks,
CAB