Help for this page

Select Code to Download


  1. or download this
    $d =~ s/(\d\d)(?=\d)/$1-/g;
    
  2. or download this
    1 while $d =~ s/(?<=\d\d)(?=\d)/-/;
    
  3. or download this
    $d = reverse($d);
    $d =~ s/(?<=\d)(?=(\d\d)+$)/-/g;
    $d = reverse($d);