Like this?
[0] Perl> $dna = 'atctcggataatgggataaaaatataggctataaatggcgccccggctaatt +ttt';; [0] Perl> print $1 while $dna =~ m[atg(.+?)(?=taa|tag|tga)]g;; gga gcgccccggc
If so, the difference is the use of the non-greedy match quantifier +?
In reply to Re: Simple regex question. Grouping with a negative lookahead assertion.
by BrowserUk
in thread Simple regex question. Grouping with a negative lookahead assertion.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |