It seems the regex options in the option(boolean)
form are not being processed:
$ swipl
Welcome to SWI-Prolog (threaded, 64 bits, version 8.1.26)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).
1 ?- re_matchsub("\\d.*\\d"/s,"1\n2",Dict,[]).
Dict = re_match{0:"1\n2"}.
2 ?- re_matchsub("\\d.*\\d","1\n2",Dict,[dotall(true)]).
false.
It works fine with the /s
at the end of the regex, but dotall(true)
is not being processed.