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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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, " "));