Unless you really need to confirm the structure of the path itself, the easiest way to remove the leading # and the surrounding whitespace would be:
$ou =~ /^\s*#\s*//;
In reply to Re: regex substitute(resolved)
by hdb
in thread regex substitute(resolved)
by anaconda_wly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |