match package:regex-base
matchAll returns a list of matches. The matches are in order
and do not overlap. If any match succeeds but has 0 length then this
will be the last match in the list.
This is matchAll with the actual subsections of the source
instead of just the (offset,length) information.
matchCount returns the number of non-overlapping matches
returned by matchAll.
This returns the first match in the source (it checks the whole
source, not just at the start). This returns an array of
(offset,length) index pairs for the match and captured substrings. The
offset is 0-based. A (-1) for an offset means a failure to match. The
lower bound of the array is 0, and the 0th element is the
(offset,length) for the whole match.
This can return a tuple of three items: the source before the match,
an array of the match and captured substrings (with their indices),
and the source after the match.
matchTest returns True if there is a match somewhere
in the source (it checks the whole source not just at the start).
0 based array, with 0th index indicating the full match. If the full
match location is not available, represent as (0,0).
non-negative length of a match
0 based index from start of source, or (-1) for unused
This is the same as the type from JRegex.