Clojure, being a JVM language, allows you to utilize Java String methods directly.
Clojure makes string concatenation straightforward with the str function.
str
In Clojure, to convert a string to lower case, you’ll use the clojure.string/lower-case function.
clojure.string/lower-case
To remove characters using a pattern in Clojure, you employ regular expressions with the re-seq, re-find, or re-matches functions paired with clojure.string/replace.
re-seq
re-find
re-matches
clojure.string/replace
Clojure makes it easy to work with strings.
To get a string’s length in Clojure, use the count function.
count
Clojure’s a bit of an ascetic.
In Clojure, strings are immutable, so when we talk about “removing quotes,” we’re really talking about creating a new string sans quotes.
In Clojure, we wield the clojure.string/replace function to search and replace text.
Clojure, staying true to its roots in the Lisp family, offers a rich set of functions that interface seamlessly with Java’s regular expression capabilities.