Hi, I need assistance please in validating an input string
The string contains the following:
first character must be a Z
second character can be either S, U, or R
Third character can be any number between 1-6
The fourth character can be any character A-Z
The fifth and/or sixth character can be a A-Z
The minimum length of the input string is 4, eg. ZS6P and the maximum length is 6 e.g. ZR5PPT
my regex at this stage is [Z][SUR][1-6][A-Z] but how do i define the last two characters as these last two character might not be necessary. In other words the string could be ZU3P or ZS6BC or ZS1EFN in all three these instances these are valid strings.