Skip to navigation
Split a String by Newline in JavaScript
27.04.23
const str = reader.result; console.log(str); const result = str.split(/[\r\n]+/); console.log(result); const result2 = str.split(/\r?\n/); console.log(result2);
https://bobbyhadz.com/blog/javascript-split-string-by-newline
Reply
Anonymous
Information Epoch 1732433223
Using text data files.
Home
Notebook
Contact us