Answers for "split 3 line string + javascript"

1

split text by new line javascript

myText.split(/\n/)
Posted by: Guest on January-24-2021
1

split every n character js

var str = 'abcdefghijkl';
console.log(str.match(/.{1,3}/g));
Posted by: Guest on June-27-2020

Code answers related to "split 3 line string + javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language