I am trying to match DNA sequences that begin at the beginning or a multiple of 3 letters from the beginning, and start with either ATG or CGA, followed by 6,9,12,15,… letters and ending in AGT. The following code only gets one of the matches (the longest one). I have looked into "positive lookaheads" (e.g. […]
Categories
Match regex with overlap for DNA
- Post author By Full Stack
- Post date March 4, 2021
- No Comments on Match regex with overlap for DNA
- Tags ... letters and ending in AGT. The following code only gets one of the matches (the longest one). I have looked into "positive lookaheads" (e, "^(...)*((?:ATG|CGA)(?:...){2, ] "ABCATGABCGAAADFAGTAAAAGTAGT" "ABC" "ATGABCGAAADFAGTAAAAGTAGT" Desired: ABCATGABCGAAADFAGT ABC ATGABCGAAADFAGT ABCATGABGCGAADFAGTAAAAGT AB, }(?:AGT))") [[1]] [, 1, 12, 15, 2, 3.1, 9, and start with either ATG or CGA, followed by 6, I am trying to match DNA sequences that begin at the beginning or a multiple of 3 letters from the beginning