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.

class ref MatchIterator is
  Iterator[Match ref] ref

Implements


Constructors

create

new ref create(
  regex': Regex box,
  subject': String val,
  offset': USize val = seq)
: MatchIterator ref^

Parameters

Returns


Public Functions

has_next

Indicates whether there is another match available.

fun box has_next()
: Bool val

Returns


next

Yields the next match to the regular expression or produces an error if there is no match.

fun ref next()
: Match ref ?

Returns