regex check from a-z 0-9
myString.match(/^[A-Za-z0-9_.]+$/)
Source: stackoverflow.com
regular expression a-z and 0-9
AB4545
regular expression a-z and 0-9
AB4545545