Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

split by whitespace javascript

var text = "hoi how     are          you";
var arr = text.split(/s+/);
 
PREVIOUS NEXT
Tagged: #split #whitespace #javascript
ADD COMMENT
Topic
Name
4+5 =