Help for this page

Select Code to Download


  1. or download this
    $res = $str =~ s{ \d+ }{ $& =~ tr//3/cr }xer;
    
  2. or download this
    $res = $str =~ s{ \d+ }{ 3 x length $& }xer;