Jonathon, you'll have much better luck with NSScanner. It's designed for exactly what you want.

Mike.

On 3 Mar 2008, at 15:37, Jonathan Dann wrote:

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
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to