Help for this page
$s =~ /A[^A-Z]*B[^A-Z]*C[^A-Z]*D/;
# Same thing, but built dynamically. my $re = join '[^A-Z]*', split //, 'ABCD'; $s =~ /$re/;
my $temp = $s; $temp =~ s/[^A-Z]//g; $temp =~ /ABCD/;