I'm use RegexKitLite to match some texts:
xxx*[abc]*xxx
and I want to match [abc],and use this regular:
NSString *result = [@"xxx[abc]xxx" stringByMatching:@"\\[(.*)?\\]" capture:1];
then, the result is [abc].But, if have linebreak in there:
xxx[ab c]xxx
It's dosen't work. I use ([\s\S]*), also dosen't math [abc]. How can I match this text? thank you