Now I realize that mine includes a few more characters but basically the moral is that his left nothing but the characters I was seeking to destroyThat would be because tr doesn't take a regex character class, it takes a simple list of characters. :-)
This should do what you want...
For the record, the /c complements the search list, the /d deletes the matching characters.tr{A-Za-z0-9_ .=/\\}{}cd;
In reply to Re: tr/// vs s/// The question.
by ChemBoy
in thread tr/// vs s/// The question.
by muzakfetch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |