in reply to Re: Regular expressions
in thread Regular expressions
Well, I understand your point, but is it really incorrect? After all this sequence is preceded by ATG and followed by TAA, so it is in a certain way correct. But it is clearly not the smallest sequence matching this criteria in the input string.which, while it is not correct, is not unspecified.GTTTCTCCCATCTCTCCATCGGCATAAAAATACAGAATGATC
This to say that, while:
seems to probably give a better answer, it is not completely clear whether theDB<2> print "$1\n" while ($seq =~ m/(ATG(?:.*?)(TAG|TAA|TGA))/g); ATGGTTTCTCCCATCTCTCCATCGGCATAA ATGATCTAA
is a valid sequence or not.(ATG)GTTTCTCCCATCTCTCCATCGGCATAAAAATACAGAATGATC(TAA)
|
|---|