Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript find number in string

the regular expression on looks for the first number character in the string

let numberInString = theString.match(/d+/[0];
 
PREVIOUS NEXT
Tagged: #javascript #find #number #string
ADD COMMENT
Topic
Name
6+6 =