--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> The bsr options are mutually exclusive. bsr_anycrlf makes \R match
> certain things and bsr_unicode makes it match those things plus
> others. Like newline options bsr option can be changed after pattern
> is compiled. So might show up in the handle form of plugin's
> pcreservices. I should probably add a handle-form test.


;hRE.release ;;if used in larger test script
@94
local pattern=?"\R"
local hRE=regex.pcrecompile(pattern)
hRE.pcreMatch("\x85")
win.debug("94", "expect No Match", regex_status)
win.debug("")
hRE.pcreMatch("abcde\85", ?"bsr_unicode")
win.debug("94b", "expect Match", regex_status)
hRE.pcreMatch("abcde\85")
win.debug("94c", "expect No match", regex_status)
quit

94b should be matching but it isn't.

Regards,
Sheri



Reply via email to