in reply to Re^4: Regex KungFu help needed
in thread Regex KungFu help needed

As you wish :)

print "$_: ", $t = () = GGGGGGGAGAAAAAAAAAAAAAAAGAAGGA =~ /(?=\Q$_\E)/ +g, $/ for AAAAA,GAAGG,GGAGA,GGGGG

Removing whitespaces is left as an exercise for the reader :)