Skip to content
Prev 164717 / 398506 Next

gregexpr - match overlap mishandled (PR#13391)

Greg Snow wrote:
while not exactly what i meant, this is an implementation of one of the
approaches mentioned below, ith care taken not to report duplicate matches:
one issue with your solution is that it allocates n substrings at the
same time, which requires O(n^2) space (with n the length of the
original string), but it may be faster than a for loop matching one
substring at a time.

vQ