Regex for Alphanumeric only
Matches letters and digits only (no symbols or spaces).
^[a-zA-Z0-9]+$
Proof it works
| Sample | Should match | Result |
|---|---|---|
abc123 |
yes | pass |
Test42 |
yes | pass |
abc 123 |
no | pass |
a_b |
no | pass |
hello! |
no | pass |