I am trying to figure out appropriate regex for indian train seat numbers. For e.g. S10 43, B4 24 etc. I know different trains have different number of seats and coaches but a general regex will work for me. I was trying something like this:
But this is not working. I also didn't find link to all types of seats in train. Can anyone help me with this?
Limiting to a given number range (1-15 and 1-72) makes it a little more complicated (as above) - it will be a lot simpler if you just accept 1- or 2-digit numbers:
But that will match
A99 99 which apparently isn't valid