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

Re: tr alke expansion?



> something wrong there : there are accents in my original post :)

Sorry; embarrassing glitch on my side.  Lifted from
http://www.zsh.org/mla/users/2001/msg00221.html:

first=éèê
second=eee
a=bébèbê
print ${a//(#b)([$first])/${second[${first[(I)$match]}]}}

This does not work with multibyte character sets such
as UTF-8.



Messages sorted by: Reverse Date, Date, Thread, Author