Regex for string of exactly 3 characters

Matches any string that is exactly 3 character(s) long.

^.{3}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
chm yes pass
chmr no pass
ch no pass

Try your own input

Related patterns