in reply to Growing strings in search
The answer also depends on the regex. For a simple regex, just starting where you left off might be enough (e.g. qr/X/), but even for a bit more complex regex qr/abc/, you can't just continue with the newly added characters, as the original string might have end in "ab" and the new character might be "c" that completes the match. For even more complex regexes like qr/a.*b/ you might need to return unknown number of characters to the left (i.e. to the last "a").
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Growing strings in search
by b4swine (Pilgrim) on Apr 15, 2020 at 15:47 UTC |