Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Quantifier ( braces in regexp )



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