FROM : Jonathan Dann
DATE : Mon Mar 03 16:37:34 2008
Hi Guys,
I'm trying to find a way to use NSPredicate to search an NSString for
all occurrences of a string and return them to me. Ideally I need the
returned strings ranges too.
Is this possible? I can get is to tell me that a regex match is found
using a predicate with the format @"SELF MATCHES %@",myRegex and
evaluating my plain text document string, but now I'm stuck.
Any help would be grand, thanks.
Jonathan Dann
DATE : Mon Mar 03 16:37:34 2008
Hi Guys,
I'm trying to find a way to use NSPredicate to search an NSString for
all occurrences of a string and return them to me. Ideally I need the
returned strings ranges too.
Is this possible? I can get is to tell me that a regex match is found
using a predicate with the format @"SELF MATCHES %@",myRegex and
evaluating my plain text document string, but now I'm stuck.
Any help would be grand, thanks.
Jonathan Dann
| Related mails | Author | Date |
|---|---|---|
| Jonathan Dann | Mar 3, 16:37 | |
| Mike Abdullah | Mar 3, 17:16 | |
| Jonathan Dann | Mar 3, 19:12 | |
| Dave Camp | Mar 3, 19:23 | |
| Jonathan Dann | Mar 4, 12:25 | |
| Jens Alfke | Mar 4, 18:50 | |
| Jonathan Dann | Mar 4, 19:19 | |
| Jens Alfke | Mar 4, 22:08 | |
| glenn andreas | Mar 4, 22:33 | |
| John Engelhart | Mar 5, 05:55 | |
| Jens Alfke | Mar 5, 07:03 | |
| John Engelhart | Mar 5, 20:48 |






Cocoa mail archive

