I'm seeing something I should have expected - for the given string "AABAABAA" and target "AABAA" my @offsets will have one element whose value = 0. I need it to contain 0 and 3...
I know what it's doing, when AABAA is matched, it moves on to the end of the match. What I really need is a sliding window type of match. It didn't dawn on me to explain this until I remembered how this works...
What it's doing:
*AABAA*BAA - matches here
AABAA*BAA regex continues at the asterisk,
but I want it to continure here:
A*ABAABAA
i.e., i guess you could say I need a single-width assertion...
--