Help for this page

Select Code to Download


  1. or download this
    my $n = 2;
    my $pattern = qr/\.0/;
    ...
        $str =~ s/($pat.*?){$n}($pat)/$1/;
        return $str;
    }