Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: Pattern match location findingby feloniousMonk (Pilgrim) |
on Feb 18, 2004 at 23:15 UTC ( [id://330088]=note: print w/replies, xml ) | Need Help?? |
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... --
In Section
Seekers of Perl Wisdom
|
|