Aha!
I thought it must be something like that - the issue that I was uncertain about what was what the neg-lookahead was applied to. It would seem it applies to the .{1,5} rather than the 'foo'.
Slightly non-intuitive IMHO, but I've got it now...
In reply to Re^2: Why isn't this regex greedy?
by Melly
in thread Why isn't this regex greedy?
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |