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)(glob pat sq {:keys [ignorecase] :as options})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)(pattern->regex pat {:keys [ignorecase]})Convert glob pattern pat into a regular expression
Convert glob pattern `pat` into a regular expression
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |