I need to validate an input that must start with an alpha, and then it can be alphanumeric, but once numeric; it must be numeric to the end of the string.
[a-z][a-z,0-9]{1,5}
This does only part of the job. So it validates correctly for
a1
abc12
ab123
but I do not want
a1b2c1
so onces it gets a numeric, the rest must be numeric.