Answers for "js regular expression match chars and numbers"

0

regex match number javascript

str = "hello123!"	
str.match(/(d+)/)[1]	//Best way to find first matching number in string ;)
Posted by: Guest on October-10-2021
0

javascript regex match character from a set of characters

// Regex - Any character from a set of characters
console.log(/[0123456789]/.test("in 1992")); // true
console.log(/[0-9]/.test("in 1992")); // true
console.log(/[abc]/.test("def")); // false
console.log(/[abc]/.test("cdef")); // true
Posted by: Guest on June-28-2020

Code answers related to "js regular expression match chars and numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language