Turns this
into one that matches a number of times (with the given separator)
and potentially extracts a PathMatcher
of the underlying matcher's extractions.List
Turns this
into one that matches a number of times (with the given separator)
and potentially extracts a PathMatcher
of the underlying matcher's extractions.
If less than List
applications of the underlying matcher have succeeded the produced matcher fails,
otherwise it matches up to the given min
number of applications.
Note that it won't fail even if more than max
applications could succeed!
The "surplus" path elements will simply be left unmatched.max
The result type depends on the type of the underlying matcher:
If a ``matcher`` is of type | then ``matcher.repeat(...)`` is of type | |
``PathMatcher0`` | ``PathMatcher0`` | |
``PathMatcher1[T]`` | ``PathMatcher1[List[T]`` | |
``PathMatcher[L :Tuple]`` | ``PathMatcher[List[L]]`` |
Same as
.repeat(min = count, max = count, separator = separator)
Same as
.repeat(min = count, max = count)
(pathMatcher: EnhancedPathMatcher[L]).?(lift)
(pathMatcher: EnhancedPathMatcher[L]).?(lift)
(pathMatcher: StringAdd).self
(pathMatcher: StringFormat).self
(pathMatcher: ArrowAssoc[PathMatcher[L]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(pathMatcher: Ensuring[PathMatcher[L]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatcher.Unmatched.