in reply to Re: Re: Re: negative Lookahead
in thread negative Lookahead or
but still gives the same results. If the $string$string =~ / ( HIT (?= [^<]* (?! <a[^>]*> ) .*?<\/a> ) .*?<\/a> ) /x;
does properly not match and'<a href="#1">--HIT<a name="MUST NOT MATCH">--</a> <a href="#2">2</a>'
does "falsely" match I don't understand why the problem lies in the fact that a negative lookahead does not backtrack.'<a href="#1">--HIT-<a name="MUST NOT MATCH">--</a> <a href="#2">2</a> +'
|
|---|