in reply to Re: Regex: Overlapping Matches: Double Execution of Eval-ed Code (pos==pos && len!=len)
in thread Regex: Overlapping Matches: Double Execution of Eval-ed Code

... work around ...

I, also, came up with a work-around similar to the JavaFan's, although whether better than yours is another question as it needs the Special Backtracking Control Verbs of 5.10+. This was in the course of fiddling with a reply to Re^5: dice's coefficient. The idea was to avoid list generation by the regex (and it also, coincidentally, works without the /g modifier), but the results were not particularly noteworthy in terms of speed.

  • Comment on Re^2: Regex: Overlapping Matches: Double Execution of Eval-ed Code (pos==pos && len!=len)