delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/20/04:17:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-WebMail-UserID: pjacklam AT online DOT no
Date: Tue, 20 Jan 2004 10:17:06 +0100
From: "Peter J. Acklam" <pjacklam AT online DOT no>
To: cygwin <cygwin AT cygwin DOT com>, sds AT gnu DOT org
X-EXP32-SerialNo: 50000140
Subject: RE: cygwin/regex is non-POSIX
Message-ID: <400DDBC3@epostleser.online.no>
Mime-Version: 1.0
X-IsSubscribed: yes

sds AT gnu DOT 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 AT online DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019