$_ = reverse $string; s/b/x/; $string = reverse $_; [download]
In reply to Re: RE - match from right by borisz in thread RE - match from right by bangers