正则表达式

(def data "Pi is equal to 3.14")
;; #"..." is a regex literal: inside it a backslash is NOT doubled
(def pattern #"\d+\.\d+")

(when-let [m (re-find pattern data)]
  (let [pi (parse-double m)]
    ;; pi is 3.14
    (println "pi is" pi)))