my %replace = ("a" => "b", "b" => "a"); s/(a|b)/$replace{$1}/g;
In reply to Re: Multiple replacements with the exception of previously made replacements.
by JavaFan
in thread Multiple replacements with the exception of previously made replacements.
by jthiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |