in reply to Re^3: Perl regular expression for amino acid sequence
in thread Perl regular expression for amino acid sequence

It has the benefit of being blindingly unobvious about what it's not doing. It doesn't detect 'GNN', 'NNGYGY' and 'NNGNN' givn the input 'xxxxxxxGNNNxxxxxxxNNNGYGYxxxxxxxGYGYNNNxxxxxxxNNNGNNNxxxxxxx'