Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quantifier ( braces in regexp )
- X-seq: zsh-users 11662
- From: Artur Penttinen <arto-p@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Quantifier ( braces in regexp )
- Date: Tue, 24 Jul 2007 13:21:19 +0400
- In-reply-to: 1660000000187457413
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070723073116.GA5210@xxxxxxxxxxxxxxxxxxxxx> <20070723084802.GA5747@xxxxxxxxxxxxxxx> 1660000000187457413
- Reply-to: artur@xxxxxxxxxxx
> On Mon, Jul 23, 2007 at 09:48:02AM +0100, Stephane Chazelas wrote:
> > In zsh, you can do something like:
> >
> > ${(l:20::?:)~:-} for .{20}
> >
> > and
> >
> > ${(l:20::?:)~:-}${(l:40::(?|))~:-}
> >
> > for .{20,30}
> >
> > but that's a bit convoluted.
> >
> > See also ${${(r:30:):-${(l:20::.:):-}}:gs: :(?|)::gs/./?}
> >
> Wow, that seems quite difficult and a bit ugly, thanks anyway Stéphane.
> I hope this feature will be implemented in future releases :)
may be zsh/pcre ? (man zshmodules)
--
wbw, artur
Messages sorted by:
Reverse Date,
Date,
Thread,
Author