Help for this page

Select Code to Download


  1. or download this
    my @result = $string =~ /^([^\.]\.[^\.])(:?\.([^\.]))*$/;
    
  2. or download this
    my ($firstPart, @result) = split(/\./, $string);
    $result[0] = $firstPart . "." . $result[0];