Match into a delegate.
assert("Mary has 5 apples" .matchCaptures(`^(\w+) has (\d+) (\w+)$`, (string name, int count, string fruit) { assert(name == "Mary" && count == 5 && fruit == "apples"); } ) );
See Implementation
Match into a delegate.