Getting the substring from a certain character in NSString
Posted
by cannyboy
on Stack Overflow
See other posts from Stack Overflow
or by cannyboy
Published on 2010-06-16T09:10:15Z
Indexed on
2010/06/16
9:12 UTC
Read the original article
Hit count: 196
If I have an NSString that is initially:
"ABCDE*FGHI"
How do I make it turn into
"FGHI"
In other words, everything from the asterisk onwards is kept.
Likewise, how would I turn it into:
"ABCDE"
(everything up to the asterisk is kept)
Thanks
© Stack Overflow or respective owner