Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    $str =~ s/(.)\1+/$1*/g;
    print "\n$str";
    
  2. or download this
    
    Fo*bo*ba*r