Regex for string of exactly 8 characters

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

^.{8}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
chmrwbgl yes pass
chmrwbglq no pass
chmrwbg no pass

Try your own input

Related patterns