Help for this page

Select Code to Download


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