in reply to Re: Why isn't this regex greedy?
in thread Why isn't this regex greedy?
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why isn't this regex greedy?
by demerphq (Chancellor) on Mar 17, 2006 at 10:44 UTC |