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