I have a string like this (from a form submission):
"apple, banana\r\ncherries\r\n\r\ngrapes, blue berries \r\n\r\n \r\norange"
How do I detect values AND create an array for each line that has text? Like this:
[
["apple", "banana"],
["cherries"],
["grapes", "blue berries"],
["orange"]
]