Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: regular expressions and setting variables?
- X-seq: zsh-users 18897
- From: "William G. Scott" <wgscott@xxxxxxxx>
- To: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- Subject: Re: regular expressions and setting variables?
- Date: Tue, 10 Jun 2014 07:26:30 -0700
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=from:content-type:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=qVk6oTawZfJHofJ24pyVvunbXrqN7ny/rXTSgzxakhA=; b=MA6KcbYnjsrlCu8zyNo9LQ7QET3iTEneNPnYwCijWDzupxZhHX6kySqBJ7V3hjWx36 Mzynp2WHKo5dbbKL5LuQnp4k0kNFBwMbQEUb8R5ez0VRZRbEPI1K2fK0xKkax7zdtkxv zwHR7zQy3d9QVe9/47p/Fm5FBG9qkrcZCMzgs=
- In-reply-to: <20140610084527.GA50473@redoubt.spodhuis.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <157E3510-D220-4C1C-A452-93DE96DA4363@chemistry.ucsc.edu> <20140610084527.GA50473@redoubt.spodhuis.org>
On Jun 10, 2014, at 1:45 AM, Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
>
> ${name/pattern/repl} does not use regular expressions, it uses shell
> patterns.
>
> Described in zshexpn(1) under "PARAMETER EXPANSION".
>
> % echo ${JUNK/%./_}
> R.E.M_
>
> -Phil
Thanks very much to all who replied. I didn’t even realize there was a difference (sorry).
— Bill
Messages sorted by:
Reverse Date,
Date,
Thread,
Author