I'm having trouble with regular expressions. I want to check user input when entering a bus number.
Examples: 37, 37A, 37S, 37A / L, 16A / 250, 16A / 250K, etc.
The regular expression that I came up with is
(^\d{1,3}[AZ]{0,3})|(^[\d{1,3}[AZ]{0,3}\/\d{0,3}[AZ]{0,3}])
He checks 37, 37A, 37S, but when it comes to checking 37A / L, he fails. Can someone tell me where I am going wrong?
Note. I am using a regular expression checker for a text field. I put this in a ValidationExpression expression.
user1512559
source share