Or, expanding on what choroba said,
$test =~ s{^/+}{/};if, for some perverse reason, you have more than two //, like $test = "////user/";
In reply to Re: help with regex
by ExReg
in thread help with regex
by beanscake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |