Hey Guys,
I'm searching through some text stored in an NSString object for a specific line of text like this: > TO Some Place Somewhere<. I have my code all set up so that all I need to find that is a regular expression pattern. I search for other pieces of info using patterns that start with >(my pattern) and all work. My problem is that the text I'm looking for can have different number of words each time, but I know it will always be between >< and starts with TO.
Anyone that's good with regular expressions have any suggestions for me? I'm new with regular expressions can can't seem to make sense of what I'm finding on Google.
Thanks for the help!
I'm searching through some text stored in an NSString object for a specific line of text like this: > TO Some Place Somewhere<. I have my code all set up so that all I need to find that is a regular expression pattern. I search for other pieces of info using patterns that start with >(my pattern) and all work. My problem is that the text I'm looking for can have different number of words each time, but I know it will always be between >< and starts with TO.
Anyone that's good with regular expressions have any suggestions for me? I'm new with regular expressions can can't seem to make sense of what I'm finding on Google.
Thanks for the help!