Regex for string of exactly 20 characters

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

^.{20}$

Proof it works

3/3 sample tests passed · compiles: true

SampleShould matchResult
chmrwbglqvafkpuzejot yes pass
chmrwbglqvafkpuzejoty no pass
chmrwbglqvafkpuzejo no pass

Try your own input

Related patterns