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 43 times
0
Eduardo Kusdra Filho
- 25
- 5
2 Answers
0
“[abc]” Matches only a single character from set of given characters.
so you need [MmFf]
Ahmed Eid
- 134
- 5