in reply to Re^2: Global regexp
in thread Global regexp

To be true my problem was more complex than just matching digits. I wanted to find all possible matches for any regexp.

That's simple enough to.

local our @results; # Not "my". /(\d\d)(?{ push @results, $1 })(?!)/;

Replies are listed 'Best First'.
Re^4: Global regexp (all possible)
by Anonymous Monk on Jun 18, 2008 at 04:38 UTC
    Thanks!
    I guess magic (?!) do all the job
      (?!) never succeeds (like 5.10's (?*FAIL)), so it force the regexp engine to backtrack and find another match if there is one.