Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $str =~ s/(?<=A)(X+)(?=A)/'a' x length $1/ge;
    print "$before\n";
    print "$str\n";
    
  2. or download this
    XAXAAAAXXXXXXXAAXXXXXAXXXXAAAAX
    XAaAAAAaaaaaaaAAaaaaaAaaaaAAAAX