NSScanner question
NSScanner question
- Subject: NSScanner question
- From: Koen van der Drift <email@hidden>
- Date: Tue, 19 Mar 2013 10:01:31 -0400
I have the following string: "this is a test AA string to capture BB and some more". I am using an NSScanner to extract the string to capture. I scan up to AA, and then up to BB. However, sometimes, the string can be: "this is a test BB string to capture AA and some more". When I now use the scanner to scan for AA first, I will already be past my target string. Unfortunately, I do not know in advance if AA comes before BB or the other way around.
Any suggestions how to solve this with an NSScanner?
Thanks,
- Koen.
_______________________________________________
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