Answers for "regex match n digits"

VBA
0

regex only digits

console.log(`12331: ${/^d+$/.test('12331')}`) // true 
console.log(`abc: ${/^d+$/.test('abc')}`) // false
Posted by: Guest on August-03-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

Code answers related to "VBA"

Browse Popular Code Answers by Language