Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 340 Bytes
static NSRegularExpression *regex = nil;
if (!regex) {
NSError *err = nil;
regex = [[NSRegularExpression regularExpressionWithPattern:{{pattern}} options:NSRegularExpressionCaseInsensitive error:&err] retain];
if (!regex) {
if (err) NSLog(@"%@", err);
}
}
NSString *str = LS(1);