Help for this page
my @base = $str =~ /\G ( \[ [^][]+ \] | [^][] ) /xg;
[ grep { $base[ $i ] !~ $_ } qw( A T C G ) ];