Is it possible to search for a string in an if statement with an NSScanner?
I wanted to search through the html of a page and then if there is a certain piece of code, do something and if not, do something else…
Thanks!
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 don’t need to use a
NSScanner. Just search for a substring in the html as aNSString. Like so: