extractCapture

Undocumented in source. Be warned that the author may not have intended to support it.
  1. template extractCapture(T)
  2. auto extractCapture(S s, R r)
    extractCapture
    (
    S
    R
    )
    (
    S s
    ,
    R r
    )

Examples

auto s = "One 2 three 42";
auto r = `(\d+)`;
assert(s.extractCapture    (r).equal(["2", "42"]));
assert(s.extractCapture!int(r).equal([ 2 ,  42 ]));

Meta