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