regex no special characters except spaces and length javascript code example
Example: remove all sign that is not a-b in string js
const str = "abc's test#s";
console.log(str.replace(/[^a-zA-Z ]/g, " "));
const str = "abc's test#s";
console.log(str.replace(/[^a-zA-Z ]/g, " "));