Mail Archives: cygwin/2005/01/30/17:35:06
On 29 Jan, Corinna Vinschen wrote:
> * regex addresses do not use leftmost-longest matching. In other words,
> /.\+/ only looks for a single character, and does not try to find as
> many of them as possible like it used to do.
Interesting: does that mean every existing script that relied on the old
behaviour must change? I'm glad I stuck with the old "/..*/" notation
when I wanted one or more repetitions!
So \+ now works the opposite of * (\+ = shortest, * = longest)? And .\+
is now a synonym for a single "."? So, why would you use .\+? Ah, I
see, it's a way of matching zero or one occurrences. I would have
thought a new symbol would have made more sense for the new semantics,
so as to preserve backward compatibility.
Probably I've misunderstood.
luke
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -