remove all special characters except numbers javasceipt code example
Example: remove special characters from string javascript
var str = "Hello^# World/";
str.replace(/[^a-zA-Z ]/g, ""); // "Hello World"
var str = "Hello^# World/";
str.replace(/[^a-zA-Z ]/g, ""); // "Hello World"