This is our stripped down version of the cuerdas library to avoid bringing in an extra dependency.
This is our stripped down version of the cuerdas library to avoid bringing in an extra dependency.
(escape s)
Escapes characters in the string that are not safe to use in a RegExp.
Escapes characters in the string that are not safe to use in a RegExp.
(join coll)
(join separator coll)
Joins strings together with given separator.
Joins strings together with given separator.
(lines s)
Return a list of the lines in the string.
Return a list of the lines in the string.
(regexp? x)
Return true
if x
is a regexp pattern
instance.
Return `true` if `x` is a regexp pattern instance.
(split s)
(split s sep)
(split s sep num)
Splits a string on a separator a limited number of times. The separator can be a string, character or Pattern (clj) / RegExp (cljs) instance.
Splits a string on a separator a limited number of times. The separator can be a string, character or Pattern (clj) / RegExp (cljs) instance.
(unlines s)
Returns a new string joining a list of strings with a newline char (\n).
Returns a new string joining a list of strings with a newline char (\n).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close