我使用NSRegularExpression从HTML中提取图像URL。由于“NSInvalidArgumentException”异常而终止应用程序,原因:“* enumerateMatchesInString:options:range:usingBlock::-NSRegularExpression-NSRegularExpression 0参数”
N
match at the endNSError *error = NULL;
NSRegularExpression*detector = [NSRegularExpression regularExpressionWithPattern:[self theRegularExpression] options:0
我一直在使用NSRegularExpression,我一直认为matchesInString()方法不返回可选数组是没有意义的。extension NSRegularExpression {
/* The fundamental matching method on NSRegularExpression is a block