Alphanumeric Regular Expression

Category: Strings

A regular expression to parse and validate Alphanumericals (a combination of alphabetical and numerical characters).

/^[A-Za-z0-9]+$/

Examples:

  • Regex999
  • Pattern666
  • RegexPattern123

See Also:

Characters & constructs:

View Full Cheatsheet

expr usage
[ABCD] Matches any character in square brackets (case sensitive).
^ Matches the beginning of the string, or the beginning of a line if the multiline flag (m) is enabled. This matches a position, not a character.
$ Matches the end of the string, or the end of a line if the multiline flag (m) is enabled. This matches a position, not a character.
Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.