just take the alphanumeric regex code example Example: regex to identify numeric and alphanumeric "^[a-zA-Z0-9_]*$"