Regex for Alphanumeric only

Matches letters and digits only (no symbols or spaces).

^[a-zA-Z0-9]+$

Proof it works

5/5 sample tests passed · compiles: true

SampleShould matchResult
abc123 yes pass
Test42 yes pass
abc 123 no pass
a_b no pass
hello! no pass

Try your own input

Related patterns