in reply to transliterate on regex
$_ = '1 the cat sat on the mat.'; tr/abcdefghijklmnopqrstuvwxyz0-9/aBCDEFGHIJKLMNOPQRSTUVWXYZ/d; print "$_\n"; $_ = '2 the cit sit on the mit.'; tr/abcdefghijklmnopqrstuvwxyz0-9/ABCDEFGHiJKLMNOPQRSTUVWXYZ/d; print "$_\n"; __END__ THE CaT SaT ON THE MaT. THE CiT SiT ON THE MiT.
Do you get it now?
tr/searchlist0123456789 /REPLACEMENTLIST/d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: transliterate on regex
by ww (Archbishop) on Jun 19, 2013 at 11:47 UTC | |
by choroba (Cardinal) on Jun 19, 2013 at 11:59 UTC | |
|
Re^2: transliterate on regex
by vicearl (Initiate) on Jun 19, 2013 at 05:59 UTC |