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