Help for this page
/(?:(?!(.)\1\1)[QGYN]){3,6}/;
while ($seq{$k} =~ /(([QGYN]) ((?!\2)[QGYN]|\2(?!\2)) ... print "\n$k"; print $1." begins at position ", (pos($seq{$k})-length($s)) , "\n"; }