Skip to content

Instantly share code, notes, and snippets.

@hellonico
Created April 11, 2014 06:14
Show Gist options
  • Save hellonico/10443520 to your computer and use it in GitHub Desktop.
Save hellonico/10443520 to your computer and use it in GitHub Desktop.
playing with frak
(require 'frak)
(frak/pattern ["foo" "bar" "baz" "quux"])
; #"(?:quux|foo|ba[zr])"
(frak/pattern ["Clojure" "Clojars" "ClojureScript"])
; #"Cloj(?:ure(?:Script)?|ars)"
(frak/pattern ["skill" "skills" "skull" "skulls"])
; #"sk(?:[ui]lls?)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment