Regex for string of exactly 12 characters

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

^.{12}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
chmrwbglqvaf yes pass
chmrwbglqvafk no pass
chmrwbglqva no pass

Try your own input

Related patterns