I have a lengthy string as below
Please plan to attend to provide upgrade to existing code
morning meeting to acoomdate bum team members
Meeting Number: 457 231 123
To join this meeting
- go to http://domainname.com
- enter password
Now i want to grab number after the text “Meeting Number”
i.e. 457 231 123
Any help please.
thanks
EDIT
Lets say i have a string
NSString *myString = @"Please plan to attend to provide upgrade to existing code morning meeting to acoomdate bum team members Meeting Number: 457 231 123 ----------------------------------------------------- to join this meeting ------------------------------------------------------ 1. go to http://domainname.com 2. enter password"
You may use regular expressions to capture the numbers also (assuming that there is only numeric characters and spaces in the result, and there is always the “Meeting Number: ” prefix):
this can be used to parse multiple inputs together since we have a loop here. If the requirements is just to parse one input, replace the code after the declaration of the regex with: