Strip Numbers from a String

0
0
var someString = "Hello 123 World!";

newString = someString.replace(/[0-9]/g, '');

// console.log(newString);
// "Hello  World!";
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.