remove special character from string javascript w3scholl code example
Example 1: remove special characters from string javascript
var str = "Hello^# World/";
str.replace(/[^a-zA-Z ]/g, ""); // "Hello World"
Example 2: remove charachter from string
StringBuilder sb = new StringBuilder(inputString);