From Wiktionary, the free dictionary
From sub- + match.
submatch (plural submatches)
- (computing) A match forming part of a larger match, for example in a text string being searched.
2008, Mehran Habibi, Java Regular Expressions: Taming the java.util.regex Engine, page 71:As you examine a specific candidate String
, the Matcher
can keep track of submatches for that expression.