Getting a substring
Getting a substring
- Subject: Getting a substring
- From: Ariel Rodriguez <email@hidden>
- Date: Fri, 5 Dec 2008 20:03:47 -0200
My question is simple, at least that is what i think :)
I need to extract something like this: 01816560 from something like
this: http://www.xxxx.com/diario/2008/12/05/um/m-01816560.htm My first
idea was to use - (NSArray *)componentsSeparatedByString:(NSString
*)separator with - first (to get the 01816560.htm and then - (NSArray
*)componentsSeparatedByString:(NSString *)separator again with '.' But
i am quite sure it should be a better way to do just that. Any idea?
Best.
_______________________________________________
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