MatchIterator¶
MatchIterator allows for calling code to repeatedly perform the same match against a subject string as an iterator. This lets callers repeat the match until no more matches exist.
Implements¶
Constructors¶
create¶
Creates a new Match Iterator from a regular expression and a subject string.
new ref create(
regex': Regex box,
subject': String val,
offset': USize val = 0)
: MatchIterator ref^
Parameters¶
Returns¶
- MatchIterator ref^
Public Functions¶
has_next¶
Indicates whether there is another match available.
Returns¶
- Bool val
next¶
Yields the next match to the regular expression or produces an error if there is no match.
Returns¶
- Match ref ?