• 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
multiple componentsSeparatedByString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple componentsSeparatedByString


  • Subject: multiple componentsSeparatedByString
  • From: Koen van der Drift <email@hidden>
  • Date: Fri, 22 Nov 2002 09:06:53 -0500

Hi,

I can split a string in smaller ones using componentsSeparatedByString:

- (NSArray *)componentsSeparatedByString:(NSString *)separator

Where separator is the string at which the main string should be broken. Is it possible to test for more than one separators at a time, e.g. split the string if the separator is either a space or tab (or any other user specified character(s)?

Maybe I should just first test for the first separator on the main string, and then search for the second one in all the smaller strings?

thanks a lot,

- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • RE: multiple componentsSeparatedByString
      • From: "Jonathan E. Jackel" <email@hidden>
  • Prev by Date: Re: how to crash on normally ignored exceptions
  • Next by Date: Re: Simple Semi-Transparent View?
  • Previous by thread: Setting RadioButton programatically
  • Next by thread: RE: multiple componentsSeparatedByString
  • Index(es):
    • Date
    • Thread