Answers for "getting numbers from string in js"

5

js get number from string

thenum = "foo3bar5".match(/\d+/)[0] // "3"
Posted by: Guest on January-08-2021
0

javascript string get numbers

thenum = "foo3bar5".match(/\d+/)[0] // "3"
Posted by: Guest on April-16-2022

Code answers related to "getting numbers from string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language