Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

extract words from string js

let string = 'Hi, how& are you? bro!';
let arr = string.match(/w+/g); // ['Hi', 'how', 'are', 'you', 'bro']
 
PREVIOUS NEXT
Tagged: #extract #words #string #js
ADD COMMENT
Topic
Name
2+5 =