in reply to Re: Using Recursion to Find DNA Sequences
in thread Using Recursion to Find DNA Sequences

Thanks everyone! The matches that I am looking for (which JohnGG correctly highlighted) are: ATGGTTTCTCCCATCTCTCCATCGGCATAA ATGGTTTCTCCCATCTCTCCATCGGCATAAAAATACAGAATGA ATGGTTTCTCCCATCTCTCCATCGGCATAAAAATACAGAATGATCTAA ATGATCTAA
  • Comment on Re^2: Using Recursion to Find DNA Sequences

Replies are listed 'Best First'.
Re^3: Using Recursion to Find DNA Sequences
by AnomalousMonk (Archbishop) on Oct 29, 2017 at 19:10 UTC

    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:  <%-{-{-{-<