Captures.whichPattern

int whichPattern() @safe @property const nothrow

Number of pattern matched counting, where 1 - the first pattern. Returns 0 on no match.