tr replaces characters, while s/// replaces substrings.
Your code in fact removes all characters in the set lmx.()$ from the target string.
Update: Athanasius pointed out that I missed the dollar sign in what tr replaces. The expression given to tr// does not interpolate variables.
In reply to Re: Regex expression is matching more than once
by Corion
in thread Regex expression is matching more than once
by tobias_hofer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |