/ Published in: Objective C
URL: http://www.stiefels.net/2007/01/24/regular-expressions-for-nsstring/
Expand |
Embed | Plain Text
predicateWithFormat:@"SELF MATCHES %@", regex]; if ([regextest evaluateWithObject:mystring] == YES) { NSLog(@"Match!"); } else { NSLog(@"No match!"); }
You need to login to post a comment.
