in reply to Finding patterns

What I understand from your question that you want to find string between two primers, now the two primers shown by you is actually having no string in between them, so I changed it little bit in this way AATCGGGTATGAAAAATTTxyzTGCCGGCGTTTGCG now the text you'll get in between these two primers is xyz. Try the following code and it'll work fine.
$a = 'AATCGGGTATGAAAAATTTxyzTGCCGGCGTTTGCG'; while($a=~/AAAATTT(.*?)TGCCG/g){ print "The variable is $1"; }
Let me know if your question is different than this.

Replies are listed 'Best First'.
Re^2: Finding patterns
by MoniqueLT (Initiate) on May 25, 2012 at 01:56 UTC

    WOW those responses were quick!! Thanks so much! Switching out the $_; for $1, and adding () around .*? did the trick!!

    Sorry my question was a bit unclear! Thanks again guys!