Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quantifier ( braces in regexp )
- X-seq: zsh-users 11660
- From: antho.charles@xxxxxxxxx
- To: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- Subject: Re: Quantifier ( braces in regexp )
- Date: Tue, 24 Jul 2007 11:02:40 +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:content-transfer-encoding:in-reply-to:user-agent:from; b=ZGKXwIiajx4YzQEVLgalYtFpxo6x2SYRWdHO37jFAImLQCHzA51u5iqcUC56tIkpN1GU3fcXN6d5+/z23mVunrOalAMhkSRXDnQL302CtY6qPYRJ2dKCuvkGxageQcly/+ylWZEyH+M4w5jWoLxTieqRuvp5z8bFyiQb/Pxxsxo=
- 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:content-transfer-encoding:in-reply-to:user-agent:from; b=gSscp+W0Xg3azuXKHUdEciVKLWwJd96TmG8XYyClYr5z1hDy/8gLt5094k1ZN0sHHxnha0EP3tm+YBdC6A3jxEa1FDjOB7P1ur8lOlPjGLQU5dJR+NPg4QczH3IBEWXYWaSRk36TtI9racDum3pkJ7dNKxc0Wl+aUS9hMPkNaoU=
- In-reply-to: <20070723084802.GA5747@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070723073116.GA5210@xxxxxxxxxxxxxxxxxxxxx> <20070723084802.GA5747@xxxxxxxxxxxxxxx>
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 :)
Regards,
--
Anthony CHARLES
Messages sorted by:
Reverse Date,
Date,
Thread,
Author