I have a single form element that sends its value to a PHP script. This value needs to be validated and it there are 5 different sets that it can be grouped to,
x stands for digits 0-9
Set 1: ABxxTXxx
Set 2: ABxxTXAxxx
Set 3: ABCxxx
Set 4: Axxx
Set 5: xxx
Can this be done? Is there any library I could use?