• 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
Getting a substring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting a substring
      • From: Peter N Lewis <email@hidden>
    • Re: Getting a substring
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: RE: New to Cocoa and Objective C, and I need some basic pointers
  • Next by Date: Re: Undocumented NSTextMovment for space in NSTextView's -insertCompletion:...
  • Previous by thread: [MEET] Los Angeles CocoaHeads Thursday Dec. 11th 7:30pm
  • Next by thread: Re: Getting a substring
  • Index(es):
    • Date
    • Thread