I need to create an expression for the following case of a code field:
- Maximum number of characters
- The first digit should be just numbers [0-9]
- The code is composed of alphanumeric digits and only the / (bar) and - (hyphen) characters, and they will not always have all of them.
I tried to start one, but without success:
^[0-9][a-zA-Z0-9\/-]+$
Example results
Valid:
260509
8605/05
5ABC605/05
756574-7
88BS-AS0
Invalid:
A8605/05
B756574-7