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:
- Currency Regular Expression
- Decimal Number Regular Expression
- Regular Expression To Match Only Alphabets And Spaces
Characters & constructs:
| 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. |