split-lines

clojure.string

  • (split-lines s)
Splits s on \n or \r\n.

1 Example top

  • user=> (clojure.string/split-lines "test \n string")
    ["test " " string"]
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/string.clj:178 top

(defn split-lines
  "Splits s on \\n or \\r\\n."
  {:added "1.2"}
  [^CharSequence s]
  (split s #"\r?\n"))
Vars in clojure.string/split-lines:
Used in 0 other vars

Comments top

No comments for split-lines. Log in to add a comment.