Skip to content

coltnz/re-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

re-ext

A Clojure library to provide regular expression utilities in particular designed to allow composing regexs.

Usage

;compiled at macro time
(re/and #"a" #"b")  
=> #"(ab)"
;compiled at run time
(re/or #"a" (re-pattern "b"))  
=> #"(a|b)a"
;compiled at macro time
(re/or #"a" (re/and #"b")) 
 => #"(a|(b))"
;compiled at run time
(def def-re #"bc") 
(let [local-re #"ef"]
  (re/or def-re local-re))
=> #"(bcd|bcd)"

License

Copyright © 2017 Colin Taylor & Contributors

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Sometimes you want to compose regexs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors