in reply to Regex - one and only one / at beginning and end of file path
s/^\//; { local $/='/'; chomp; } [download]
Didn't read the question correctly the first time. Sorry.