##
/CCGG
(
(?:
(?!CCGG)
.
){50,100}? # <====
)
AATT # and ending at AATT
/x;
##
##
/CCGG
(
(?:
(?!AATT|CCGG) # <=============
. #
){50,100}? # Here the "?" is not required but I'm anal
) #
AATT #
/x;