in reply to Modifying the match position after each match

Add
use re 'debug';
and you'll see exactly what gets matched, then you can fix your regex

Replies are listed 'Best First'.
Re^2: Modifying the match position after each match
by pat_mc (Pilgrim) on Mar 24, 2010 at 08:39 UTC
    Nice idea but no ... that doesn't help. The regex is exactly what I need and requires no fixing. The problem is that multiple matches overlap in one character.