Regex for string of exactly 16 characters

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

^.{16}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
chmrwbglqvafkpuz yes pass
chmrwbglqvafkpuze no pass
chmrwbglqvafkpu no pass

Try your own input

Related patterns