Can I separate an NSString by more than 1 separator?
Posted
by Sheehan Alam
on Stack Overflow
See other posts from Stack Overflow
or by Sheehan Alam
Published on 2010-04-05T21:59:59Z
Indexed on
2010/04/05
22:03 UTC
Read the original article
Hit count: 195
I would like to separate my string by spaces, commas, periods (ie. punctuations). I am using:
[myString componentsSeparatedByString:@" "];
to separate by spaces, but need to be able to split by punctuations as well.
© Stack Overflow or respective owner