It's probably a nice addition but I find regexes that can work while leaving the original unmodified irksome. $test =~ s{^/+}{/} will work on /something and leave it identical. I would rather see $test =~ s{^//+}{/}; so the intent is clear and action is only taken when necessary.
In reply to Re^2: help with regex
by Your Mother
in thread help with regex
by beanscake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |