//
// CCNSRegularExpression.h
// CCFC
//
// Created by xichen on 11-12-23.
// Copyright 2011 ccteam. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSRegularExpression(cc)
// get the common result array with pattern in the string: str;
// returns the array of "NSTextCheckingResult *" elements.
+ (NSArray *)getCommonResult:(NSString *)str withPattern:(NSString *)pattern;
@end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCNSRegularExpression.h
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCNSRegularExpression.h