Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2014 01:06:25 +0000
From:      Kym Crox <kymcrox02@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Important Information For Your Website : Freebsd.org :ZS
Message-ID:  <089e0129499e93f7f704f0acf756@google.com>

Next in thread | Raw E-Mail | Index | Archive | Help
DQoNCkhpIEZyZWVic2Qub3JnIFRlYW0sDQoNCkhvcGUgeW91IGFyZSBkb2luZyBncmVhdCBhbmQg
ZXZlcnl0aGluZyBmaW5lIGF0IHlvdXIgZW5kLg0KDQpJIHRob3VnaHQgeW91IG1pZ2h0IGxpa2Ug
dG8ga25vdyBzb21lIG9mIHRoZSBtb3N0IGltcG9ydGFudCBmYWN0b3JzIG9mIHlvdXINCndlYnNp
dGUgYW5kIHJlYXNvbnMgb2YgbGFja2luZyBlbm91Z2ggb3JnYW5pYyB0cmFmZmljICYgbW9zdCBv
ZnRlbiB5b3UNCnN0aWNrIHRvIEFkIHdvcmRzIHRvIGdldCBtb3JlIHRyYWZmaWMgd2hpY2ggaXMg
cXVpdGUgZXhwZW5zaXZlIGFuZCB0aGUNCmNoYW5jZXMgaXMgaGlnaCBvZiBnZXR0aW5nIGEgc3Bh
bSB0cmFmZmljIGFzIHdlbGwuDQoNCipTb21lIG9mIHRoZSBtYWpvciBmYWN0b3JzIHdoaWNoIGNh
biBiZSBvdmVyY29tZSB0byB5b3VyIHdlYnNpdGUgdG8gcmFuaw0Kd2VsbCBpbiBTRVJQIG9yZ2Fu
aWNhbGx5IGFuZCBpbmNyZWFzZSB5b3VyIHNvY2lhbCBtZWRpYSBwcmVzZW5jZSBhcmU6Kg0KDQox
LiBTZWVtcyBsaWtlIHlvdXIgd2Vic2l0ZSBjYXJyaWVzIGEgbG90IG9mIHRlY2huaWNhbCBlcnJv
cnMgd2hpY2ggcHJldmVudHMNCnNlYXJjaCBlbmdpbmUgdG8gY3Jhd2wgYW5kIGluZGV4IHlvdXIg
d2Vic2l0ZSBwcm9wZXJseS4N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dG8geW91DQphcyBwZXIg
eW91ciBzdWl0YWJsZSB0aW1lLg0KDQpMZXQgbWUga25vdyB5b3VyIHRob3VnaHRzIGFuZCBsb29r
aW5nIGZvcndhcmQgdG8gd29yayB0b2dldGhlci4NCg0KKkJlc3QgUmVnYXJkcywqDQoNCipLeW0g
Q3JveCoNCg0KU2VuaW9yIFNFTyBBZHZpc29yDQpTa3lwZTogd2VibWFya2V0aW5nLnNhbGVzDQoq
Tm90ZTogKldlIGFyZSBub3Qgc3BhbW1lcnMuIFdlIGp1c3Qgd2FudCB0byBrbm93IHlvdXIgaW50
ZXJlc3QgdG93YXJkcyB0aGUNCmJldHRlciBwZXJmb3JtYW5jZSBvZiB5b3VyIHdlYnNpdGUgYW5k
IGVuaGFuY2UgeW91ciBidXNpbmVzcyBpbiB3ZWIgbWFya2V0Lg0KSWYgeW91IHdpbGwgYmUgaW50
ZXJlc3RlZCB3ZSB3aWxsIGRpcmVjdGx5IGNvbW11bmljYXRlIHdpdGggeW91IHRocm91Z2ggb3Vy
DQpjb3Jwb3JhdGUgSWQuDQoNCklmIHlvdSB0aGluayBpdCdzIHVubmVjZXNzYXJ5IGZvciB5b3Ug
c28gcGxlYXNlIGVtYWlsIHVzIGJhY2sgdG8gcmVtb3ZlIGFuZA0Kd2Ugd2lsbCB1bnN1YnNjcmli
ZSB5b3UuIEhvcGUgeW91IHdpbGwgY28tb3BlcmF0ZS4NCg0KDQoNCi0tLS0tLS0tLS0tLS0tLS0t
LS0tRExQLS0tLS0tLS0tLQ0K
From owner-freebsd-questions@FreeBSD.ORG  Fri Jan 24 02:22:57 2014
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 204203A2;
 Fri, 24 Jan 2014 02:22:57 +0000 (UTC)
Received: from wonkity.com (wonkity.com [67.158.26.137])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4993116E4;
 Fri, 24 Jan 2014 02:22:55 +0000 (UTC)
Received: from wonkity.com (localhost [127.0.0.1])
 by wonkity.com (8.14.7/8.14.7) with ESMTP id s0O2Mr5W083136;
 Thu, 23 Jan 2014 19:22:53 -0700 (MST)
 (envelope-from wblock@wonkity.com)
Received: from localhost (wblock@localhost)
 by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id s0O2MqVh083133;
 Thu, 23 Jan 2014 19:22:52 -0700 (MST)
 (envelope-from wblock@wonkity.com)
Date: Thu, 23 Jan 2014 19:22:52 -0700 (MST)
From: Warren Block <wblock@wonkity.com>
To: "'Devin Teske'" <dteske@FreeBSD.org>
Subject: RE: awk programming question
In-Reply-To: <04d201cf1895$20956890$61c039b0$@FreeBSD.org>
Message-ID: <alpine.BSF.2.00.1401231904410.82598@wonkity.com>
References: <F01EB9CE742DEB17DB6B51C7@localhost>
 <alpine.BSF.2.00.1401230900270.76961@wonkity.com>
 <20140123185604.4cbd7611@gumby.homeunix.com>
 <04a201cf1878$8ebce540$ac36afc0$@FreeBSD.org>
 <alpine.BSF.2.00.1401231346520.80613@wonkity.com>
 <04aa01cf187e$cfcf9ef0$6f6edcd0$@FreeBSD.org>
 <alpine.BSF.2.00.1401231537260.80613@wonkity.com>
 <04d201cf1895$20956890$61c039b0$@FreeBSD.org>
User-Agent: Alpine 2.00 (BSF 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3
 (wonkity.com [127.0.0.1]); Thu, 23 Jan 2014 19:22:53 -0700 (MST)
Cc: 'RW' <rwmaillists@googlemail.com>, freebsd-questions@freebsd.org
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Jan 2014 02:22:57 -0000

On Thu, 23 Jan 2014, dteske@FreeBSD.org wrote:

>> No, the non-greedy modifier to a standard quantifier:
>>
>> echo "abczabczabcz" | perl -ne '/(a.*z)/; print "$1\n"'
>> abczabczabcz
>>
>> echo "abczabczabcz" | perl -ne '/(a.*?z)/; print "$1\n"'
>> abcz
>
> Craziness! Wonder when that crept in.

I've been using it for at least a decade, so it's probably been around 
at least twice that long.  ...So probably came out about twenty years 
after the sed and awk feature sets were frozen. :)

> I'm not entirely sure how I feel about that -- in terms of
> readability, I'm not sure if the following is more readable:
>
> 	/(a[^z]*z)/

Wait till you see the other PCRE stuff.  There are lots of things that 
really make it much more powerful.  perlre(1) covers it all, sketchily 
and not really in order.

I've said elsewhere, and will repeat again: "Mastering Regular 
Expressions" by Jeffrey E. F. Friedl (the owl book) is amazing.  My 
first edition (1997) does not have some of the newer Perl stuff, but 
it's now up to a third edition:

http://shop.oreilly.com/product/9780596528126.do



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?089e0129499e93f7f704f0acf756>