DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove all white spaces and different characters globally
str = text.toLowerCase().replace(/[^A-Za-z0-9]/g,'');
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#white
#spaces
#characters
#globally
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit