iOS中用正则表达式找出匹配的内容
摘要:
// regularExpress:正则表达式 desString:被查找的字符串+ (NSString *)matchRegularExpress:(NSString *)regularExpress andDesString:(NSString *)desString{ NSError *error; NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:regularExpress options:0 error:&error]; if (regex != n... 阅读全文
posted @ 2013-11-15 19:21 lonelysoul 阅读(801) 评论(0) 推荐(0) 编辑