zsh-users
 help / color / mirror / code / Atom feed
From: "William G. Scott" <wgscott@ucsc.edu>
To: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
Cc: zsh-users@zsh.org
Subject: Re: regular expressions and setting variables?
Date: Tue, 10 Jun 2014 07:26:30 -0700	[thread overview]
Message-ID: <21125430-3163-4DF9-A570-8A41BF0972B3@chemistry.ucsc.edu> (raw)
In-Reply-To: <20140610084527.GA50473@redoubt.spodhuis.org>


On Jun 10, 2014, at 1:45 AM, Phil Pennock <zsh-workers+phil.pennock@spodhuis.org> 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

  reply	other threads:[~2014-06-10 14:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-10  5:04 William G. Scott
2014-06-10  6:17 ` Roman Neuhauser
2014-06-10  8:45 ` Phil Pennock
2014-06-10 14:26   ` William G. Scott [this message]
2014-06-10 14:11 ` zzapper
  -- strict thread matches above, loose matches on Subject: below --
2014-06-10  5:02 William G. Scott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21125430-3163-4DF9-A570-8A41BF0972B3@chemistry.ucsc.edu \
    --to=wgscott@ucsc.edu \
    --cc=zsh-users@zsh.org \
    --cc=zsh-workers+phil.pennock@spodhuis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).