The only thing that overrides a regexes natural greediness is it's desire to achieve a match. If it can, it will, and it can, so it does:)How about putting a +after the quantifier?
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
In reply to Re: regex negative lookahead behaviour
by princepawn
in thread regex negative lookahead behaviour
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |