Answers for "javascript split on multiple characters"

1

js split string every n characters

foo.match(new RegExp('.{1,' + n + '}', 'g'));
Posted by: Guest on August-23-2020
0

javascript split string by multiple characters

let string = "Hello awesome, world!"
string.split(/[\s,]+/)
// Hello,awesome,world!
Posted by: Guest on June-06-2021
0

how to split by words and punctuation in javascript

string.split(/\s*\b\s*/)
Posted by: Guest on December-09-2020

Code answers related to "javascript split on multiple characters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language