--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> Will post the 2.09 release in the next day or so.
>
I found a problem. Unlike earlier PCRE releases, PCRE 8.00 updates its vector
when PCRE_ERROR_PARTIAL is returned. When the option "offsets" is included with
partial_hard or partial_soft, and a partial match status is obtained, there are
no entries in our vector.
local hVec
if (vec.exists(hVec))
vec.destroy(hVec)
hVec=vec.create(2)
local ret=regex.pcrematch(?"abcdef|a.", "ab", ;;+
"partial_hard offsets", hVec)
win.debug("99: (test partial_hard) ret", ret, "status", regex_status)
if (hVec.length > 0) do
win.debug(hVec[0] ++" at offset "++hVec[1])
else
win.debug("99: hVec is empty")
endif
quit
Regards,
Sheri