Hi internals,
PCRE has some very nice partial matching functionality described at
https://www.pcre.org/current/doc/html/pcre2partial.html. This is useful for
streaming processing, as it allows you to distinguish between "there's
definitely no match here" and "this could match starting from position N,
but we need more data to find out".
Here is a PR to expose this functionality from PHP:
https://github.com/php/php-src/pull/3969 The PR has a basic description of
the API.
What do you think?
Nikita