Help for this page
use strict; use warnings; ... $match =~ s/x/[abcd]/ig; print "Matched $1\n" if $str =~ /($match)/i;
Matched ABCDABCDABCDABCDABCDABCDABCD