Do you know where your variables are? | |
PerlMonks |
Re^2: FInding the longest match from an initial match between two filesby Cristoforo (Curate) |
on Nov 09, 2016 at 17:46 UTC ( [id://1175615]=note: print w/replies, xml ) | Need Help?? |
Seq1: TACATCTCAAAACACTTTCATCTCACGACTACTACTACTACTTCAAAACACCATCAT Seq2: ACTTCAACATAACTACTATATACTACTCATACTACTACTCTTAAAACTACTATACTA
Seq1: TACATCTCAAAACACTTTCATCTCACGACTACTACTACTACTTCAAAACACCATCAT The above is the line1 and line2 from your sequence sample. The first shows in red and blue 2 matches from the regex. In the second identical set, you can see (in red), a match which is 1 character longer than the longest match (in red, above). My question is why the regex made 2 captures here instead of the optimal match in the second (10 chars instead of 9). The code which accidentally found this was:
In Section
Seekers of Perl Wisdom
|
|