Help for this page

Select Code to Download


  1. or download this
    $line =~ s/(\w{3}(?!$))/$1-/xg;
    
  2. or download this
    $string =~ s/(\w\w\w)(?!$)/$1-/g;
    from McA
    
    s/(\w{3})\B/$1-/g
    from Ken