lastMatch method

RegExpMatch? lastMatch(
  1. String input
)

Returns the last match found in input.

input's delimited blocks of text will be detected in reverse order, so only the last block will be parsed.

Implementation

RegExpMatch? lastMatch(String input) =>
    getMatches(input, start: 0, stop: 0, reverse: true)?.first;