() = $string =~ /(?=$regex)(?{push @matches, pos})./g;