zsh-users
 help / color / mirror / code / Atom feed
* how to use character range [] in substitution pattern :gs
@ 2012-05-09 14:01 reckoner
  2012-05-09 14:23 ` Jérémie Roquet
  0 siblings, 1 reply; 7+ messages in thread
From: reckoner @ 2012-05-09 14:01 UTC (permalink / raw)
  To: Zsh Users

I'm trying to use the the [] character range to substitute for embedded 
parenthesis as in the following:

% echo ${x:gs/[()]/_/}

But This isn't working for some reason. It's not complaining about 
syntax, so I'm pretty sure that I'm using the character range [] 
incorrectly somehow.

Any help appreciated.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-09 18:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-09 14:01 how to use character range [] in substitution pattern :gs reckoner
2012-05-09 14:23 ` Jérémie Roquet
2012-05-09 14:38   ` Peter Stephenson
2012-05-09 16:00     ` reckoner
2012-05-09 16:34       ` Peter Stephenson
2012-05-09 17:12         ` reckoner
2012-05-09 17:25           ` Re[2]: " Vadim Zeitlin

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).