|Keep It Simple, Stupid|
Understanding a portion on the Perlretutby BlueStarry (Novice)
|on Dec 09, 2015 at 11:57 UTC||Need Help??|
BlueStarry has asked for the
wisdom of the Perl Monks concerning the following question:
since a week, i'm studying the perlretut. I'm confused with an example:
On the regexp: /(\w\w\w)*?TGA/g
can anybody explain me step by step the procedure that the regexp engine does with the provided string?$dna = "ATCGTTGAATGCAAATGACATGAC"
I was missing the fact that *? matches the empty string too, so even if at the start of the line a TGA is going to be counted. However i still don't understand why this is bugged without \G.