in reply to Re: Regex: Matching last of repeated character to end of string
in thread Regex: Matching last of repeated character to end of string

Or even substr($xpath, rindex($xpath, '/')) = "";!

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart