views:

17

answers:

1

Hi, if i have an NSString eg->

string(102)"?xml etc

How to remove all chars upto and including the double quote. I want to remove the string(102)"

Doing this NSString* newString = [str substringFromIndex:13] works but is not ideal

+1  A: 
NSRange range = [str rangeOfString:@"\""];
NSString *newString = [str substringFromIndex:range.location + range.length];

Is one way.

Wevah