s/^\//; { local $/='/'; chomp; }
Didn't read the question correctly the first time. Sorry.
In reply to Re: Regex - one and only one / at beginning and end of file path
by delirium
in thread Regex - one and only one / at beginning and end of file path
by mikedshelton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |