Regex for string of exactly 6 characters

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

^.{6}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
chmrwb yes pass
chmrwbg no pass
chmrw no pass

Try your own input

Related patterns