From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28044 invoked from network); 17 May 2005 18:08:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 May 2005 18:08:39 -0000 Received: (qmail 9178 invoked from network); 17 May 2005 18:08:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 May 2005 18:08:31 -0000 Received: (qmail 15049 invoked by alias); 17 May 2005 18:08:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8857 Received: (qmail 15030 invoked from network); 17 May 2005 18:08:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 May 2005 18:08:24 -0000 Received: (qmail 8225 invoked from network); 17 May 2005 18:08:24 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 17 May 2005 18:08:16 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DY6QK-0004Mp-Oh for zsh-users@sunsite.dk; Tue, 17 May 2005 20:04:08 +0200 Received: from 241.119-84-212.ippool.ndo.com ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2005 20:04:08 +0200 Received: from david by 241.119-84-212.ippool.ndo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2005 20:04:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: echo $fred:s/str1/str2/ Date: Tue, 17 May 2005 19:02:44 +0100 Message-ID: References: <7poj81po8fr55i9k6h6as8s6uco3jnre9c@4ax.com> of "Tue, 17 May 2005 13:31:09 BST." <7poj81po8fr55i9k6h6as8s6uco3jnre9c@4ax.com> <27161.1116334818@csr.com> <6a3k81phsnau8g7qgua7ai6k5h9bkm943f@4ax.com> <200505171608.j4HG8shU013267@news01.csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241.119-84-212.ippool.ndo.com X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Tue, 17 May 2005 17:08:53 +0100, wrote: >zzapper wrote: >> On Tue, 17 May 2005 14:00:18 +0100, wrote: >> >You can't use patterns with that form, which is the history modifier >> >syntax. You can use patterns with this form: >> > >> >echo ${fred/bu/hhh} >> > >> Peter, >> I was expecting to use PCRE but it seems to only allow simplified patterns >> >> echo ${fred/ket*ll/yyy} >> >> Where can I find the rules? > >They are standard shell globbing patterns, as described in the "Filename >Generation" section of the zshexpn manual. This is the only form of >pattern matching the standard shell syntax knows about. > >You certainly shouldn't be expecting to use PCRE. That's never part of >standard shell syntax. It's only invoked in a few particular cases >loaded explicitly with the zsh/pcre module. thx found the right part of help now -- zzapper vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?" http://www.rayninfo.co.uk/tips/ vim, zsh & success tips