Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove special characters from string javascript

var str = "Hello^# World/";
str.replace(/[^a-zA-Z ]/g, ""); // "Hello World"
 
PREVIOUS NEXT
Tagged: #remove #special #characters #string #javascript
ADD COMMENT
Topic
Name
2+2 =