-
-
Notifications
You must be signed in to change notification settings - Fork 691
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")