Right now I\'m doing a split on a string and assuming that the newline from the user is \\r\\n like so:
split
\\r\\n
string.split(/\\r\\n/) <
string.split(/\\r\\n/)
\n is for unix \r is for mac \r\n is for windows format
To be safe for operating systems. I would do /\r?\n|\r\n?/
"1\r2\n3\r\n4\n\n5\r\r6\r\n\r\n7".split(/\r?\n|\r\n?/) => ["1", "2", "3", "4", "", "5", "", "6", "", "7"]