I'm trying to write a regular expression that says first letter not to be uppercase and the rest 0-19 characters mixed case. This doesn't seem to do it.
!/^[A-Z][a-zA-Z]{0,19}$/ Change from:
!/^[A-Z][a-zA-Z]{0,19}$/ To:
/^[^A-Z][a-zA-Z]{0,19}$/ That should fix your problem.
^inside your first[ ]or do[a-z]