Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quantifier ( braces in regexp )
- X-seq: zsh-users 11663
- From: antho.charles@xxxxxxxxx
- To: Clint Adams <clint@xxxxxxx>, artur@xxxxxxxxxxx
- Subject: Re: Quantifier ( braces in regexp )
- Date: Tue, 24 Jul 2007 11:49:08 +0200
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:from; b=CkyQbvQ/kDYstjacYSk1eHSzJoiA1spxjuuP2mOu6eUhtK9/DlrbRoWHH/EFixDeTpQkzkV+uN49BoM3kw0zvPyjkuzfPobdM99RcP7LUt5pRoXnXyC9KleYpgr3Fdno+diUAd3qC3vC19158rfrN1lz5hDk+PHyiSf8KgnvKHs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:from; b=PvHyhwo0B5n1rdapUoByppD4CYLR7ssgSV/QIjRwBAQuzA4IhQVn84Ovrz0h9vaYvuW3jx0HFnZPEYBEZbjkRkx1GW+LGSueekwblL7XNLhX4apF0sUnJNEK9eQ1Tkq55bqxMxu7y++ZawXM0pig3uBL71NcGxy6WcWmzoQjmKc=
- In-reply-to: <20070724092043.GA3748@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070723073116.GA5210@xxxxxxxxxxxxxxxxxxxxx> <20070724092043.GA3748@xxxxxxxxxxx>
On Tue, Jul 24, 2007 at 01:21:19PM +0400, Artur Penttinen wrote:
>
> may be zsh/pcre ? (man zshmodules)
On Tue, Jul 24, 2007 at 05:20:43AM -0400, Clint Adams wrote:
> 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
Nice timing ;)
I forget this module, it's cool for scripting but I'd like to have
something more handy for globbing on the commandline, but thanks
guys :)
--
Anthony CHARLES
Messages sorted by:
Reverse Date,
Date,
Thread,
Author