lines
Splits this char sequence to a list of lines delimited by any of the following character sequences: CRLF, LF or CR.
fun CharSequence.lines(): List<String>(source)
val text = "Line1\nLine2\r\nLine3\rLine4"
val lines = text.lines()
println(lines) // [Line1, Line2, Line3, Line4]