Regex related functionality. This functionality is bespoke (it does not use
any logic from Spdx-Java-Library).
Regex related functionality. This functionality is bespoke (it does not use any logic from `Spdx-Java-Library`).
(init!)Initialises this namespace upon first call (and does nothing on subsequent
calls), returning nil. Consumers of this namespace are not required to call
this fn, as initialisation will occur implicitly anyway; it is provided to
allow explicit control of the cost of initialisation to callers who need it.
Note: this method may have a substantial performance cost.
Initialises this namespace upon first call (and does nothing on subsequent calls), returning `nil`. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it. Note: this method may have a substantial performance cost.
(re-alternation coll)(re-alternation group-name coll)Builds a regex group containing alternations of value of everything in
coll (a sequence of Strings), returning a String. Each value in coll
will be escaped.
When non-blank, the (optional) group-name parameter turns the group into a
named capturing group with that name.
Builds a regex group containing alternations of value of everything in `coll` (a sequence of `String`s), returning a `String`. Each value in `coll` will be escaped. When non-blank, the (optional) `group-name` parameter turns the group into a named capturing group with that name.
(re-concat & res)Concatenate all of the given Patterns or Strings into a single Pattern.
Concatenate all of the given `Pattern`s or `String`s into a single `Pattern`.
(re-escape s)Escapes s (a String) for use in a regex. Returns a String.
Escapes `s` (a `String`) for use in a regex. Returns a `String`.
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 |