As you wish :)
print "$_: ", $t = () = GGGGGGGAGAAAAAAAAAAAAAAAGAAGGA =~ /(?=\Q$_\E)/ +g, $/ for AAAAA,GAAGG,GGAGA,GGGGG
Removing whitespaces is left as an exercise for the reader :)
In reply to Re^5: Regex KungFu help needed
by grizzley
in thread Regex KungFu help needed
by drblove27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |