beanscake has asked for the wisdom of the Perl Monks concerning the following question:
Hello Forks, Please i want to remove one if there is // in file path prefix.
the problem is the $test could be /user/ then i will have user/ which is not what i want to see happen.$test = "//user/"; $test =~ s/^\///; print $test."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with regex
by choroba (Cardinal) on Mar 08, 2016 at 23:04 UTC | |
|
Re: help with regex
by ExReg (Priest) on Mar 08, 2016 at 23:35 UTC | |
by Your Mother (Archbishop) on Mar 09, 2016 at 00:34 UTC |