(split-lines s)
Splits s on \n or \r\n.
s
\n
\r\n
Splits s on \n or \r\n. Trailing empty lines are not returned.
(defn split-lines [s] (split s #"\n|\r\n"))