Answers for "regex match only 10 digits"

3

regex 10 numbers only

@"^d{10}$"
Posted by: Guest on May-10-2021
0

regex pater for only 4 or 6 digits

^([0-9]{4}|[0-9]{6})$
Posted by: Guest on May-25-2021
0

regex for exactly n digits

const isExactly5Digits = /bd{5}b/g.test(someString);

const isAtLeast5Digits = /(|)|d{5}/.test(someString);
Posted by: Guest on July-07-2021

Browse Popular Code Answers by Language