Regex for 2 letters only

Matches exactly 2 alphabetic letters (no digits).

^[A-Za-z]{2}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
ch yes pass
ch1 no pass
chm no pass

Try your own input

Related patterns