Don't forget to update the date in the string returned by regex.version. Working on the doc update. Is the new version number going to be 2.0.6?
--- In [email protected], "Sheri" <sheri...@...> wrote: > > New plugin options bsr_unicode and bsr_anycrlf are working > correctly. Spoke too soon there. With bsr_unicode option ?"\R" should match "\x85" at position 1. It does. It should match "abcde\x85" at postion 6. It gets "No match". Correct result is obtained when the pattern uses the internal option equivalent to bsr_unicode. @93 local pattern=?"\R" local subject="abcde\x85" local options="bsr_unicode" win.debug("93 external option bsr_unicode") win.debug(subject, "expected: 6, actual:", ;;+ regex.pcrematch(pattern, subject, options)) win.debug("expected: Match, actual:", regex_status) win.debug("") ;93b local pattern=?"\R" local subject="abcde\x85" local options="bsr_anycrlf" ;;same as default win.debug("93b external option bsr_anycrlf") win.debug(subject, "expected: 0, actual:", ;;+ regex.pcrematch(pattern, subject, options)) win.debug("expected: No match, actual:", regex_status) win.debug("") ;93c local pattern=?"(*BSR_UNICODE)\R" local subject="abcde\x85" local options="" win.debug("93c internal option equivalent to bsr_unicode") win.debug(subject, "expected: 6, actual:", ;;+ regex.pcrematch(pattern, subject, options)) win.debug("expected: Match, actual:", regex_status) win.debug("") ;93d local pattern=?"(*BSR_UNICODE)\R" local subject="\x85" local options="" win.debug("93d, internal option equivalent to bsr_unicode") win.debug(subject, "expected: 1, actual:", ;;+ regex.pcrematch(pattern, subject, options)) win.debug("expected: Match, actual:", regex_status) win.debug("") ;93e local pattern=?"\R" local subject="\x85" local options="bsr_unicode" win.debug("93e external option bsr_unicode") win.debug(subject, "expected: 1, actual:", ;;+ regex.pcrematch(pattern, subject, options)) win.debug("expected: Match, actual:", regex_status) win.debug("") ;93f local pattern=?"\R" local subject="\x85" local options="bsr_anycrlf" win.debug("93f external option bsr_anycrlf") win.debug(subject, "expected: 0, actual:", ;;+ regex.pcrematch(pattern, subject, options)) win.debug("expected: No match, actual:", regex_status) win.debug("")
