Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js replace all number

var str = "22V2isit W33Scho4ols!"; 
var n = str.replace(new RegExp("[0-9]", "g"), "");
 
PREVIOUS NEXT
Tagged: #js #replace #number
ADD COMMENT
Topic
Name
2+7 =