This ensures that it matches on the last "/" it can find, and blanks it and everything after it out.$xpathOther =~ s|/[^/]*$||;
In reply to Re: Regex: Matching last of repeated character to end of string
by jbware
in thread Regex: Matching last of repeated character to end of string
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |