This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cygwin/regex is non-POSIX


sds@gnu.org wrote.
>
> Finally, a common extension appears to be the use or "?" after
> a repetition specification to mean non-greedy matching, e.g.
> "a+?" will match only the first "a" in "aaaa".

Just a small historical note:  This extension first appeared in
Perl some 10+ years ago.  It is used after the quantifiers ?, *,
+, and {m,n} to get "non-greedy" or "minimal" matching.  The
extension became popular and now implemented in several regex
engines.

Peter

-- 
Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]