remove all special characters from string in js 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"