Answer the question
In order to leave comments, you need to log in
How to get a specific length of digits (5 or 10) with a regular expression?
How can I write a regular expression that checks the following condition: " only digits of 5 or 10 characters are allowed "?
The option [0-9]{5}|[0-9]{10}
does not fit, and I can not think of an alternative.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question