(re-matches-ncg re s)Returns the match, if any, of string to pattern, using java.util.regex.Matcher.matches(). Returns a (potentially empty) map of the named-capturing groups in the regex if there was a match, or nil otherwise. Each key in the map is the name of a name-capturing group, and each value is the corresponding value in the string that matched that group.
Returns the match, if any, of string to pattern, using java.util.regex.Matcher.matches(). Returns a (potentially empty) map of the named-capturing groups in the regex if there was a match, or nil otherwise. Each key in the map is the name of a name-capturing group, and each value is the corresponding value in the string that matched that group.
(re-named-groups re)Returns a sequence of the names of all of the named-capturing groups in the given regular expression. Note: JDK-agnostic workaround for https://bugs.openjdk.org/browse/JDK-7032377 (which is fixed in JDK 20)
Returns a sequence of the names of all of the named-capturing groups in the given regular expression. Note: JDK-agnostic workaround for https://bugs.openjdk.org/browse/JDK-7032377 (which is fixed in JDK 20)
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 |