I have a string that contains <name>James Jones</endofname>
how would i get the name from the centre pragmatically.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For this particular example, you can write
[string substringWithRange:NSMakeRange(6, 11)]. For more complicated examples, you’d need to know the full extent of the language you’re parsing and create a parser for it.