string does not match the pattern of ^ _a-za-z0-9 *$ code example Example: regex check from a-z 0-9 myString.match(/^[A-Za-z0-9_.]+$/)