Regex for string of exactly 1 characters

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

^.{1}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
c yes pass
ch no pass
no pass

Try your own input

Related patterns