$string =~ s/(.*)b/\1x/;
I don't know if that would be faster or slower than reversing it first.
TheEnigma
In reply to Re: RE - match from right
by TheEnigma
in thread RE - match from right
by bangers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |