Regex for string of exactly 10 characters
Matches any string that is exactly 10 character(s) long.
^.{10}$
Proof it works
| Sample | Should match | Result |
|---|---|---|
chmrwbglqv |
yes | pass |
chmrwbglqva |
no | pass |
chmrwbglq |
no | pass |
Matches any string that is exactly 10 character(s) long.
^.{10}$
| Sample | Should match | Result |
|---|---|---|
chmrwbglqv |
yes | pass |
chmrwbglqva |
no | pass |
chmrwbglq |
no | pass |