in reply to Re: regex
in thread want regex to strip "(xxx)"

Oops, you escaped the $ instead of the ), it should read:

$Path =~ s/\s*\(\w+\)$//;

--Dave