0

Possible Duplicate:
Objective C: How to extract part of a String (e.g. start with '#')

I want to divide string in to few parts. My string is:

NSString * myString = @"Multiply top and bottom to get < mathtype x3y2z3 over x3yz2 >,now cancel down the powers of < i >x, y, z< /i >.If you prefer, you can cancel down before you start multiplying.";

I need three parts from this. 1. Multiply top and bottom to get 2. < mathtype x3y2z3 over x3yz2 > 3. ,now cancel down the powers of < i >x, y, z< /i >.If you prefer, you can cancel down before you start multiplying.

How can I do this?

Community
  • 1
  • 1
hgpl
  • 869
  • 4
  • 11
  • 20

1 Answers1

0

If the above fails you could always convert it to an array of characters and loop through it.

- (const char *)cStringUsingEncoding:(NSStringEncoding)encoding

there are more details in the NSString Docs

geminiCoder
  • 2,918
  • 2
  • 29
  • 50