Answers for "remove all non numbers from string js"

2

js remove all non numeric from string

numString = myString.replace(/\D/g,'');
Posted by: Guest on October-24-2020
0

remove all numbers from string javascript

const string = "hello world 123";

// remove all digits from the string
const newString = string.replace(/\d/g, "") // "hello world "
Posted by: Guest on May-30-2021

Code answers related to "remove all non numbers from string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language