I want to implement this pattern to only accept one letter, being the possibilities: "M,m,F or f". I tried writing this: pattern="[M][m][F][f]{1}"
.
Asked
Active
Viewed 49 times
0

VLAZ
- 26,331
- 9
- 49
- 67

Eduardo Kusdra Filho
- 25
- 6
2 Answers
0
“[abc]” Matches only a single character from set of given characters.
so you need [MmFf]

Ahmed Eid
- 154
- 5