I have a NSString with some text that i want to remove,this is the text that i want to remove from the NSString:
Textid="more-98989">
the number can change to another number.
Any way to do it ? Did i need Regex for this?
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.
You can definitely do it wit a regular expression, but you can also do without it just as easily. Locate the initial part of the string that you would like to remove, then search for the closing
">starting at the location of theTextid=". This will give you the range of characters that needs to be removed.