3 ms·
Greedy / non-greedy is one of the main things I use in regexes (well, second to capturing). That sucks. Though if it's non-capturing, I guess it makes sense.
by Groxx 16y ago
Greedy / non-greedy is one of the main things I use in regexes (well, second to capturing). That sucks. Though if it's non-capturing, I guess it makes sense.
How many people do use regexes for boolean operations? I can only think of an instance or two where I have, aside from regular input validation.
- jemfinch 16y agoMost uses of non-greedy matching can be replaced with faster, clearer, and more precise inverted character classes, in my experience.