Objective c NSRegularExpression用于数组的数组?

Objective c NSRegularExpression用于数组的数组?,objective-c,nsmutablearray,nsregularexpression,Objective C,Nsmutablearray,Nsregularexpression,我有以下代码: //NSMutableArray sections - contains some data; NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"[a-c]" options:0 error:NULL]; [sections enumerateObjectsUsingBlock:^(NSString * str, NSUInteger idx, BOOL

我有以下代码:

//NSMutableArray sections - contains some data;
    NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"[a-c]" options:0 error:NULL];
    [sections enumerateObjectsUsingBlock:^(NSString * str, NSUInteger idx, BOOL * stop) {
        NSTextCheckingResult *match = [regex firstMatchInString:str options:0 range:NSMakeRange(0, [str length])];
        if (match)  {
            [filteredList addObject:match];
        }

}];
在本例中,sections是一个NSMutableArray

如果节是NSMutableArray的NSMutableArray,我应该如何更改代码? 如果当前sections是NSMutableArray,我如何声明NSMutableArray的NSMutableArray的sections?
看起来您需要一个二维数组。查看一些示例。