Help for this page

Select Code to Download


  1. or download this
    $idx = index($string, '(') + 1;
    $num = substr($string, $idx, length($string) - $idx - 1);
    
  2. or download this
    ($num) = $string =~ /\((\d+)\)/;
    
    # Plus the year
    
    ($year, $num) = $string =~ /(\d+)[^(]*\((\d+)\)/;