Skip to content

Instantly share code, notes, and snippets.

@daviddavis
Created March 20, 2011 22:37
Show Gist options
  • Save daviddavis/878748 to your computer and use it in GitHub Desktop.
Save daviddavis/878748 to your computer and use it in GitHub Desktop.
(ns testing
(:require [clojure.string :as str]))
(defn sanitize [n]
(str/replace #"[^a-z]" "" (.toLowerCase n))
)
(print (sanitize "abba"))
;; output is "abba[abba^abba-abba]abba"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment