fork download
  1. my $str = "(5) 3 4 (8)";
  2. my ($x, $y) = ($str =~ /\d+/g)[0..1];
  3. print "$x\t$y\n";
  4.  
Success #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout
5	3