Number of pattern matched counting, where 1 - the first pattern. Returns 0 on no match.
import std.regex; assert(matchFirst("abc", "[0-9]+", "[a-z]+").whichPattern == 2);
See Implementation
Number of pattern matched counting, where 1 - the first pattern. Returns 0 on no match.