DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+5 =
Submit