ios - Print regex results objective-C -


i have regex method

nsstring *string = [[nsstring alloc] initwithdata:data encoding:nsutf8stringencoding]; nsstring *regexstr = @"(<\/b>[a-f][+| |-]|<\/b>[a-f][+| |-] \(\d\d\.\d%\))"; nserror *error = nil; nsregularexpression *regex = [nsregularexpression regularexpressionwithpattern:regexstr options:0 error:&error];  nsarray *matches = [regex matchesinstring:string options:0 range:(nsrange){0, [string length]}];  (nstextcheckingresult *item in matches) {     nslog(@"%@", item); } 

but output of form:

2014-04-08 02:27:27.710 mistarapp[11540:60b] <nssimpleregularexpressioncheckingresult: 0x1093f18a0>{8379, 6}{<nsregularexpression: 0x1093f1470> (</b>[a-f][+| |-]|</b>[a-f][+| |-] (dd.d%)) 0x0} 

and after 4 or 5 of those, fails , gets sigabrt. log instead??

there pretty significant error compiler. deleted , recreated project, fixed problem.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -