I don't see what makes the second b in your example the "last" matched character. Matched against what? What is the matching criterion you are using?
Update: BTW, your post suggests that you do not understand the syntax for the s/// operator, which suggests that you don't understand Perl regular expressions at all. I doubt that any answer you get will do you any good until you understand at least the rudiments of regular expressions in Perl. Please read perlretut. You will probably be able to answer your own question then.
the lowliest monk
In reply to Re: matching operator question
by tlm
in thread matching operator question
by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |