• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using NSPredicate to parse strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSPredicate to parse strings


  • Subject: Using NSPredicate to parse strings
  • From: Jonathan Dann <email@hidden>
  • Date: Mon, 3 Mar 2008 15:37:34 +0000

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using NSPredicate to parse strings
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Problems with ScriptingBridge and iTunes
  • Next by Date: Coredata - populating initial data on app load - best practices
  • Previous by thread: Re: Create a PDFPage instance from Quartz-format image
  • Next by thread: Re: Using NSPredicate to parse strings
  • Index(es):
    • Date
    • Thread