From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12393 invoked from network); 5 Oct 2003 13:01:05 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 Oct 2003 13:01:05 -0000 Received: (qmail 2210 invoked by alias); 5 Oct 2003 13:00:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6644 Received: (qmail 2190 invoked from network); 5 Oct 2003 13:00:46 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 5 Oct 2003 13:00:46 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [217.174.194.138] by sunsite.dk (MessageWall 1.0.8) with SMTP; 5 Oct 2003 13:0:46 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id h95D0jt09425 for ; Sun, 5 Oct 2003 15:00:45 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1A68LN-00032R-00>; Sun, 5 Oct 2003 14:50:37 +0200 Date: Sun, 5 Oct 2003 14:50:37 +0200 From: DervishD To: Zsh Users Subject: Matching numbers Message-ID: <20031005125037.GA11674@DervishD> Mail-Followup-To: Zsh Users Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi all :)) Is there a way of matching numeric ranges taking into account leading zeroes? I want to match, for example, a day of the month, from 00 to 31, but with leading zeroes. Cannot use <00-31> because it will match just a '1', too, and something like <0-3><0-9> will match 39, too. The last one is not a big problem, because I don't mind the exact number, in fact I must just match a 'look-like'. What I mean is that I can safely match ????-??-??, for example, and the function will work (I just want to know if the file has a date-code in its first line, for seeing how much time has passed since a package was last updated), but I would like to learn a bit more about pattern matching. I know that with zsh I can make this match more precise. Thanks a lot in advance :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/