I get this:
import re;
print re.findall(r"q(?=u)", "qqq queen quick qeel")
> ['q', 'q'] # for queen and quick
But I don't get this:
import re;
print re.findall(r"q(?!=u)", "qqq queen quick qeel")
> ['q', 'q', 'q', 'q', 'q', 'q'] # every q matches
I expected only 4 qs to match because the negative lookahead should see that in the word qeel for example, the letter after the q is not u.
What gives?