I\'m trying to check that the first character of a username is capital, the following can be letters or numbers and at most 20 characters long. Can someone explain why my synta
You have a typo, the first z should be a capital -
/^[A-Z][a-z0-9_-]{3,19}$/