how can I exclude some characters in string 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"