From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 340 invoked by alias); 19 Feb 2011 06:04:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15814 Received: (qmail 15319 invoked from network); 19 Feb 2011 06:04:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at spodhuis.org does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d200912; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=SjXktdcZBzVKRBiCjiWQHdlxXLYRci0CUjyonjl+kZA=; b=dByccgugeB4yN2ZfB/TyL2JhvfGB3ny8mBadmnan7SQRQKgDEDzBKnbDPGI3dslUb7nZkuM8U0/llWvpSyoEQvE0W6ZHSKLSTrdgo0DUHq356w1QgugSe4U7mUE7qzxIIqIO4UWlRKzvIF5+A0amJOVM87P184aGErefEHxg0Vc=; Date: Sat, 19 Feb 2011 00:48:07 -0500 From: Phil Pennock To: Vincent Stemen Cc: zsh-users@zsh.org Subject: Re: Regular expressions in zsh Message-ID: <20110219054807.GA57597@redoubt.spodhuis.org> Mail-Followup-To: Vincent Stemen , zsh-users@zsh.org References: <20110219033809.GA72507@quark.hightek.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110219033809.GA72507@quark.hightek.org> On 2011-02-18 at 21:38 -0600, Vincent Stemen wrote: > I was very delighted to discover today that zsh now supports full > regular expressions in conditional statements, even using the Perl > like =~ syntax. That was one thing that I always wished zsh had. > > My compliments to the chef :-). zsh has had -pcre-match for a very long time; it's only the =~ operator which is newish; note that if you're a Perl fan, then you might: setopt REMATCH_PCRE to use PCRE regexps instead of the system regexp library's extended regexp syntax. You're welcome. :) [though I can't claim credit for the original -pcre-match].