in reply to regex substitute(resolved)
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*//; [download]