... for my $tybalt (qw/ () | (?:) g{0}/) { 'g' =~ /g/; say "successful /$tybalt/" if ' ' =~ /$tybalt/; test(); }