From: DervishD <raul@pleyades.net>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Matching numbers
Date: Sun, 5 Oct 2003 14:50:37 +0200 [thread overview]
Message-ID: <20031005125037.GA11674@DervishD> (raw)
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/
next reply other threads:[~2003-10-05 13:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-05 12:50 DervishD [this message]
2003-10-05 16:01 ` Bart Schaefer
2003-10-05 16:18 ` DervishD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031005125037.GA11674@DervishD \
--to=raul@pleyades.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).