Sample Code:
var abc = "Infallible's Techie's & devel#opment %Inc. ";
var s = abc.replace(/[^a-zA-Z0-9s]/g, "").replace(/ss/g, " ");
alert(s);
Output:
Sample Code:
var abc = "Infallible's Techie's & devel#opment %Inc. ";
var s = abc.replace(/[^a-zA-Z0-9s]/g, "").replace(/ss/g, " ");
alert(s);
Output: