Regex for 6 letters only
Matches exactly 6 alphabetic letters (no digits).
^[A-Za-z]{6}$
Proof it works
| Sample | Should match | Result |
|---|---|---|
chmrwb |
yes | pass |
chmrwb1 |
no | pass |
chmrwbg |
no | pass |
Matches exactly 6 alphabetic letters (no digits).
^[A-Za-z]{6}$
| Sample | Should match | Result |
|---|---|---|
chmrwb |
yes | pass |
chmrwb1 |
no | pass |
chmrwbg |
no | pass |