"The limits of my language define the limits of my world" if string =~ /foobar(\d\w)/#
Objective-C :
NSError *error = NULL;
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"foobar(\\d*\\w)"
options:NSRegularExpressionCaseInsensitive error:&error];
NSTextCheckingResult *match = [regex firstMatchInString:string
options:0
range:NSMakeRange(0, [string length])];
if (match) {
NSLog(@"The limits of my language define the limits of my world - Wittgenstein")
}
"The limits of my language define the limits of my world" if string =~ /foobar(\d\w)/#
Objective-C :
Enough said?