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

Re: regular expressions and setting variables?



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