Step 2 is to try the leftmost part 1 time (no TGA found).
Step 3 is to try the leftmost part 2 times (no TGA found).
Step 4 (and this is where the naive part goes bad) is to advance the leftmost starting point by one, since the match is unanchored.
In reply to Re^4: Understanding a portion of perlretut
by Corion
in thread Understanding a portion on the Perlretut
by BlueStarry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |