parse string in the split newline code example Example: split text by new line javascript myText.split(/\n/)