in reply to Multiple replacements with the exception of previously made replacements.

hi, The following regular expression will work
my $test = 'x x x a x x x b x x x a x x x b x x x'; $test =~ tr/[ab]/[ba]/; print "$test";:w
  • Comment on Re: Multiple replacements with the exception of previously made replacements.
  • Download Code