Help for this page

Select Code to Download


  1. or download this
    $string =~ s/^(.*\(.*);(.*\).*)$/$1,$2/;
    
  2. or download this
    ($a,$b,$c) = split(/[()]/,$string);
    $b =~ s/;/,/g;
    $string = $a."(".$b.")".$c;