Help for this page
if($input =~ /^(\([^\)]*\))/) { my $pattern = $1; s/$pattern//; }
if($input =~ s/^(\([^\)]*\))//) { ... } else { # Didn't match ^(...) }