Created
March 20, 2011 22:37
-
-
Save daviddavis/878748 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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