remove all sign that is not a b in string js

Solutions on MaxInterview for remove all sign that is not a b in string js by the best coders in the world

showing results for - "remove all sign that is not a b in string js"
Mila
20 Jan 2017
1const str = "abc's test#s";
2console.log(str.replace(/[^a-zA-Z ]/g, " "));