A greedy quantifier will take as many characters as it can, and then start backtracking until whatever follows it matches. A non-greedy one will take as few characters as it can, and then take more until whatever is supposed to follow it is found.
In reply to Re: Re: RE: Quantifiers in regular expressions
by Roy Johnson
in thread Quantifiers in regular expressions
by root
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |