Recently, somewhere on the web*
, I found a reference for regular expressions which described a "third way" of greediness, different both
from greedy (.*)
and lazy (.*?)
matching.
I've now tried searching SO, Googling, and even searching my browser history, but to no avail.
Can anyone make a good guess at what it was I saw?
Clarification: it referred to what was for me a new construct (something like .*+
), and I believe it even had a name for it (something like, but probably not, "passively greedy").
*
I appreciate that "somewhere on the web" is about as helpful as "in the Library of Babel" or "in the Mandelbrot set", but please try to help