How do I find the last occurrence of a substring in an NSString?
Posted
by Debashis
on Stack Overflow
See other posts from Stack Overflow
or by Debashis
Published on 2010-03-13T21:40:43Z
Indexed on
2010/03/13
23:05 UTC
Read the original article
Hit count: 331
objective-c
|string-manipulation
How would I get the last occurrence of an NSString within another NSString? For example, in "abc def ghi abc def ghi," I want to find the index of the second "abc," not the first. I know I could do this with a bunch of rangeOfStrings, but is there already a function for that?
© Stack Overflow or respective owner