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.
(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`)
(glob pat sq)
Filter sequence of strings sq
using pattern pat
Filter sequence of strings `sq` using pattern `pat`
(glob? s)
Check if a string looks like a glob pattern
Check if a string looks like a glob pattern
(pattern->regex pat)
Convert glob pattern pat
into a regular expression
Convert glob pattern `pat` into a regular expression
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close