$string =~ s/two (.*?)$/$1/ should work, though after a little testing, I find that it does not. I don't know why. Anyone?
Scott
Update: I must admit, I like the trickyness of using the reverse.
In reply to Re: Substitute _last_ occurence in string?
by scain
in thread Substitute _last_ occurence in string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |