Quick question. I need to split an NSString, if it contains a certain substring. Can someone show me an example of how to do this?
// good string
string = RESULT: 123.23
// bad string (has no result prefix)
string = asldkfjasdlkfj
if( string has "RESULT: " in it )
{
string2 = (something that returns the 123.23 part)
}
Thanks very much!