Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $ab  = "AABABAABABABAB";
    $abc =~ s/[^ab]/./gi;
    print "They match!\n" if $ab =~ /^$abc$/i;
    
  2. or download this
    print "They match!\n" unless ($abc ^ $ab) =~ /\x{3}/;