Alphanumeric Regular Expression

Category: Strings | Views Total: 6 views

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

exprusage
[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)

Leave a Reply