Liking cljdoc? Tell your friends :D

globus.core

Bash-like globbing patterns for Clojure(Script).

Supported pattern language constructs:

  • ?: matches any single character
  • *: matches any string, including the empty string
  • [qwe]: matches any single character in #{\q \w \e}
  • [^qwe] or [!qwe]: matches any single character not in #{\q \w \e}
  • [a-f]: matches any single character between \a and \f (inclusive)
  • {one,two,three}: matches anything that any of the patterns one, two and three would match.
Bash-like globbing patterns for Clojure(Script).

Supported pattern language constructs:

* `?`: matches any single character
* `*`: matches any string, including the empty string
* `[qwe]`: matches any single character in `#{\q \w \e}`
* `[^qwe]` or `[!qwe]`: matches any single character _not_ in `#{\q \w \e}`
* `[a-f]`: matches any single character between `\a` and `\f` (inclusive)
* `{one,two,three}`: matches anything that any of the patterns `one`, `two`
and `three` would match.
raw docstring

ast->regexclj/s

(ast->regex [tag & data :as ast])
source

ast->stringclj/s

(ast->string [tag & data :as ast])
source

explodeclj/s

(explode pat)

enumerate all possible expansions of a pattern. (throws an exception if that is impossible for pat)

enumerate all possible expansions of a pattern.
(throws an exception if that is impossible for `pat`)
sourceraw docstring

explode-astclj/s

(explode-ast [tag & data :as ast])
source

globclj/s

(glob pat sq)
(glob pat sq {:keys [ignorecase] :as options})

Filter sequence of strings sq using pattern pat

Filter sequence of strings `sq` using pattern `pat`
sourceraw docstring

glob?clj/s

(glob? s)

Check if a string looks like a glob pattern

Check if a string looks like a glob pattern
sourceraw docstring

parseclj/s

(parse s)
source

parse-altclj/s

(parse-alt p in)
source

parse-csetclj/s

(parse-cset p in)
source

parse-seqclj/s

(parse-seq in specials)
source

pattern->regexclj/s

(pattern->regex pat)
(pattern->regex pat {:keys [ignorecase]})

Convert glob pattern pat into a regular expression

Convert glob pattern `pat` into a regular expression
sourceraw docstring

tokenizeclj/s

(tokenize s)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close