为什么这个代码只是吐出整个正则expression式匹配而不是捕获组? input @"A long string containing Name:</td><td>A name here</td> amongst other things" 预期产量 A name here 实际产出 Name:</td><td>A name here</td> 码 NSString *htmlString = @"A long string containing Name:</td><td>A name here</td> amongst other things"; NSRegularExpression *nameExpression = [NSRegularExpression regularExpressionWithPattern:@"Name:</td>.*\">(.*)</td>" options:NSRegularExpressionSearch error:nil]; NSArray *matches = [nameExpression matchesInString:htmlString options:0 range:NSMakeRange(0, [htmlString length])]; for (NSTextCheckingResult *match in matches) […]