Answers for "javascript split by two characters"

1

split every n character js

var str = 'abcdefghijkl';
console.log(str.match(/.{1,3}/g));
Posted by: Guest on June-27-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 by two characters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language