Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quantifier ( braces in regexp )
- X-seq: zsh-users 11661
- From: Clint Adams <clint@xxxxxxx>
- To: antho.charles@xxxxxxxxx
- Subject: Re: Quantifier ( braces in regexp )
- Date: Tue, 24 Jul 2007 05:20:43 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20070723073116.GA5210@xxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: antho.charles@xxxxxxxxx, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070723073116.GA5210@xxxxxxxxxxxxxxxxxxxxx>
On Mon, Jul 23, 2007 at 09:31:17AM +0200, antho.charles@xxxxxxxxx wrote:
> I search through the doc and I can't find a way to use quantifier in
> expression like [0-9]{2,3} in standard regexp. Is there only * (#), + (##)
> and ? (|) implemented?
Aside from what Stephane's said, you can (if you've got the zsh/pcre
module) do
[[ "42" -pcre-match [0-9]{2,3} ]] && print match
Messages sorted by:
Reverse Date,
Date,
Thread,
Author