Help for this page

Select Code to Download


  1. or download this
    $_ = 'abcdegedfc'; # Try it without the g, too.
    my $re;
    $re = qr/((.)(?:(??{$re})|.?)\2)/;
    print "$1\n" while (/(?=$re)/g);
    
  2. or download this
    $_ = 'abcdegedfc';
    print "$1\n" while (/(?=((.+).?(??{quotemeta reverse $2})))/g);