good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Print A Sequence with Start codon and different Stop Codonby choroba (Cardinal) |
on Oct 27, 2015 at 23:18 UTC ( [id://1146194]=note: print w/replies, xml ) | Need Help?? |
It's not clear what output you expect. To search for overlapping sequences, you can change the second group from non-grouping to a look-behind:
to get
It still extracts the shortest possible sequence for each starting point (so we lost the second output). Update: It's possible to get all the sequences without experimental regex features and depending on the return value of print like here.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|