Answer the question
In order to leave comments, you need to log in
How to properly compose NSRegularExpression with "or" condition in objective-c?
A page can have one of two links
NSString *pattern1 = @"<a href=\"([^\"]+)\"><span class=\"arr\">→</span>";
NSString *pattern2 = @"<div class=\"quote more\"><a href=\"([^\"]+)\" class=\"button\">Хочу ещё!</a></div>";
(<a href=\"([^\"]+)\"><span class=\"arr\">→</span>)|(<div class=\"quote more\"><a href=\"([^\"]+)\" class=\"button\">Хочу ещё!</a></div>)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question