标签:
1、匹配两个字符串之间的内容
NSString *startStr = @"aaaa";
NSString *endStr = @"bbb";
NSString *str = @"aaaa8888999bbbkdkdkdkd";
NSString *regex = [NSString stringByFormat:@"%@[\s\S]*?%@",startStr,endStr]; //正则规则
标签:
原文地址:http://www.cnblogs.com/ygm900/p/4335675.html