Can someone please help me put together a regular expression to validate an alphanumeric string in a specific format.
The first character must be a letter, and the next 6 characters are numbers ... for example, x279833 or X279833 are valid.
This is what I came up with - ^ [A-Za-z] {1} [0-9] {6} $
considers
Kojof source
share