From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8447 invoked by alias); 25 Nov 2012 19:10:10 -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: 17436 Received: (qmail 4869 invoked from network); 25 Nov 2012 19:09:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at internecto.net designates 176.9.245.29 as permitted sender) X-Virus-Scanned: Debian amavisd-new at mail.internecto.net Message-ID: <50B26CF9.6060500@internecto.net> Date: Sun, 25 Nov 2012 20:09:45 +0100 From: Mark van Dijk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Vin Shelton CC: "zsh-users@zsh.org" Subject: Re: Regular expression expanding and matching References: <50B23D2D.9060603@internecto.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 25-11-12 19:30, Vin Shelton wrote: > On Sun, Nov 25, 2012 at 10:45 AM, Mark van Dijk > wrote: >> Apparently there is no expansion of ${todaysday} and ${yesterday}. >> This is not really surprising because in regular expressions many >> characters have a different meaning. > >> So what's the proper way to achieve this type of expression matching? > > Enclosing the expressions in double quotes seems to work for me: Argh. Painfully easy. Thanks Vin! Mark