Split a string into lines
SimonLSchlee edited this page Jun 10, 2020
·
3 revisions
(regexp-split "\n+" str)
(string-split str #rx"\n+") ;; string-split also accepts regular expressions
#rx"..."
and #px"..."
are literal notations for regular expressions Reading Regular Expressions
(string-split str "\n")