I have a NSString with a bunch of random numbers and then something that looks like “<string I need>“. How would I take everything out of the string except for the contents within the greater and less than signs?
I have a NSString with a bunch of random numbers and then something that
Share
Here is a snippet I use to extract pieces of string. I may have even gotten it from some other Stackoverflow question.
I would call it from something like
The leftOffest value is equal to the length of the leftString parameter. The one thing you need to code some error handling for is if the leftOffset string is not in the
someStringit will throw an error.