in reply to Regex: Matching last of repeated character to end of string
$xpathOther =~ s|/[^/]*$||; [download]