Reputation: 210
Regex should accept only A-Z, 0-9 characters, but not inlcude I, O and should be 10 characters long.
How can I fix this regex I wrote that does not contain I and O.
^[A-Z-0-9]{10}$
Upvotes: 1
Views: 191
Reputation: 4402
Make ranges that skip I and O:
^[A-HJ-NP-Z0-9]{10}$
Upvotes: 3