Answers for "remove all chars from string and leave only numbers javascript and leav space betwin numbers"

0

remove all chars from string and leave only numbers javascript

myString = myString.replace(/\D/g,'');
Posted by: Guest on September-09-2021
0

remove all chars from string and leave only numbers javascript and leav space betwin numbers

var text = "Player's got to * play! #justsaying";
var result = text.replace(/[^A-Z\d\s]/gi,'');
console.log(result);
Posted by: Guest on September-09-2021

Code answers related to "remove all chars from string and leave only numbers javascript and leav space betwin numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language