regex for 0-1 A-z a-z code example Example: regex check from a-z 0-9 myString.match(/^[A-Za-z0-9_.]+$/)