in reply to Using Recursion to Find DNA Sequences

Please could you confirm that these are the matches that you are hoping for.

AATGGTTTCTCCCATCTCTCCATCGGCATAAAAATACAGAATGATCTAA ^^^------------------------^^^ ^^^-------------------------------------^^^ ^^^------------------------------------------^^^ ^^^---^^^

Those are the ones I can spot using just my eyes but I might be misunderstanding your rules.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^2: Using Recursion to Find DNA Sequences
by clueless_perl (Initiate) on Oct 29, 2017 at 18:43 UTC
    Thanks everyone! The matches that I am looking for (which JohnGG correctly highlighted) are: ATGGTTTCTCCCATCTCTCCATCGGCATAA ATGGTTTCTCCCATCTCTCCATCGGCATAAAAATACAGAATGA ATGGTTTCTCCCATCTCTCCATCGGCATAAAAATACAGAATGATCTAA ATGATCTAA

      To get the shortest-to-longest length ordering from the approach I outlined here, just use a  ? "lazy" modifier on the quantifier of the  \w* "padding" sub-pattern making it  \w*?:
          qr{ ATG \w*? (?: TAG | TAA | TGA) }xms;


      Give a man a fish:  <%-{-{-{-<