in reply to Re^2: Match only certain characters?in thread Match only certain characters?
In that case, I'd have to do this, then.
my @ss = qw( A B C AB CA ABC xABCx BxCxAx ); for (@ss) { if (/A/ && /B/ && /C/ && !/[^ABC]/) { print "$_\n"; } } [download]