単純なNSPredicatesと正規表現に問題があります。
NSString *mystring = @"file://questions/123456789/desc-text-here";
NSString *regex = @"file://questions+";
NSPredicate *regextest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
BOOL isMatch = [regextest evaluateWithObject:mystring];
上記の例では、 isMatch
isは常にfalse/NOです。
私は何が欠けていますか?に一致する正規表現が見つからないようですfile://questions
。