RegexMatch.front

Functionality for processing subsequent matches of global regexes via range interface:

import std.regex;
auto m = matchAll("Hello, world!", regex(`\w+`));
assert(m.front.hit == "Hello");
m.popFront();
assert(m.front.hit == "world");
m.popFront();
assert(m.empty);
  1. inout(Captures!R) front [@property getter]
    struct RegexMatch(R)
    @property inout
    inout(Captures!R)
    front
    ()
  2. void popFront()
  3. auto save()

Meta

Suggestion Box / Bug Report