In computer science, an alphanumeric value often means the first character is not a number, but it is an alphabet or underscore. Thereafter the character can be 0-9, A-Z, a-z, or underscore (_).
Here is how you would do that:
Tested under PHP:
$regex = '/^[A-Za-z_][A-Za-z\d_]*$/' $regex = '/^[A-Za-z_][A-Za-z\d_]*$/' Or take
^[A-Za-z_][A-Za-z\d_]*$ and place it in your development language.