Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex for exactly n digits

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

const isAtLeast5Digits = /(|)|d{5}/.test(someString);
Comment

PREVIOUS NEXT
Code Example
Javascript :: js for each item in array 
Javascript :: stylelint default config 
Javascript :: javascript check how many times value in array 
Javascript :: js strict mode 
Javascript :: jquery noconflict 
Javascript :: Auto submit a form 
Javascript :: mean vs mern stack 
Javascript :: package json scripts multiple commands 
Javascript :: what is reactjs 
Javascript :: adding numbers in an array javascript 
Javascript :: what are native node modules 
Javascript :: faker.js avatar 
Javascript :: jquery remove multiple classes 
Javascript :: how to uncheck a radio button 
Javascript :: ckeditor check if empty 
Javascript :: json file with multiple records 
Javascript :: javascript global variable across files 
Javascript :: javascript credit card validation 
Javascript :: count word and space in text javascript 
Javascript :: javascript how-do-i-copy-to-the-clipboard-in-javascript 
Javascript :: array vowels 
Javascript :: how to change the text using jquery on click 
Javascript :: authfunctions express 
Javascript :: click right mouse javascript 
Javascript :: moment js check if date is greater than 
Javascript :: javascript for of 
Javascript :: when modal close event 
Javascript :: js sort by date 
Javascript :: add click event listener javascript 
Javascript :: how to know if a number has a decimal number js 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =