From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22988 invoked from network); 11 Oct 2006 13:28:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Oct 2006 13:28:01 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 65005 invoked from network); 11 Oct 2006 13:27:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Oct 2006 13:27:54 -0000 Received: (qmail 18651 invoked by alias); 11 Oct 2006 13:27:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10827 Received: (qmail 18641 invoked from network); 11 Oct 2006 13:27:46 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Oct 2006 13:27:46 -0000 Received: (qmail 63897 invoked from network); 11 Oct 2006 13:27:46 -0000 Received: from ms-2.rz.rwth-aachen.de (HELO ms-dienst.rz.rwth-aachen.de) (134.130.3.131) by a.mx.sunsite.dk with SMTP; 11 Oct 2006 13:27:43 -0000 Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0J6Z002KZ3ZLWA@ms-dienst.rz.rwth-aachen.de> for zsh-users@sunsite.dk; Wed, 11 Oct 2006 15:26:09 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 11 Oct 2006 15:26:09 +0200 (MEST) Received: from fsst.voodoo.lan ([212.117.85.29]) by relay.rwth-aachen.de (8.13.7/8.13.3/1) with ESMTP id k9BDQ8mJ001777 for ; Wed, 11 Oct 2006 15:26:08 +0200 (MEST) Received: from hawk by fsst.voodoo.lan with local (Exim 4.63) (envelope-from ) id 1GXe5k-0001Wu-Aq for zsh-users@sunsite.dk; Wed, 11 Oct 2006 15:25:48 +0200 Date: Wed, 11 Oct 2006 15:25:48 +0200 From: Frank Terbeck Subject: Re: pattern matching question In-reply-to: <20061011131505.GA4262@fsst.voodoo.lan> To: zsh-users@sunsite.dk Mail-followup-to: zsh-users@sunsite.dk Message-id: <20061011132548.GC4262@fsst.voodoo.lan> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline Operating-System: Linux 2.6.16.16 i686 User-Agent: Mutt/1.5.13 (2006-08-11) References: <20061011130213.GA6307@localhost.localdomain> <20061011131505.GA4262@fsst.voodoo.lan> Frank Terbeck : > [snip] > list=("... one giraffe ..." "... two cows ..." "... one monkey ..." "... three lemmings ...") Sorry, for not reading your post close enough: > slist=(${(M)list:#*one [a-z]*}) slist=(${${${(M)list:#*one [a-z]*}##*one }%%[^a-z]*}) > print old: > print -l $list > print "\nnew:" > print -l $slist > [snap] Regards, Frank