Step 5: Retrieve the first match found. This simple step is done in only one line.
第5步:检索找到的第一个匹配项。
Instead of testing for a match, however, a match object is created for the first match found in the input string.
然而,Match对象并非用于测试匹配而是为在输入字符串中找到的第一个匹配项创建的。
The implicit side effect is that after this line the matcher object contains the first match found in the input text.
隐含的副作用是,执行该行代码之后, matcher 对象包含在输入文本中找到的第一个匹配项。
应用推荐