Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove special characters in javascript

const str = "abc's test#s";
console.log(str.replace(/[^a-zA-Z ]/g, ""));
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #special #characters #javascript
ADD COMMENT
Topic
Name
8+6 =