Project

Profile

Help

Regular expression matching using JavaScript regular expression syntax based on ;j flag?

Added by Martin Honnen almost 2 years ago

In https://www.saxonica.com/saxon-js/documentation/index.html#!conformance/regex I find the statement:

Saxon-JS allows the flags argument to be suffixed with the string ";j". If this option is present then the JavaScript regular expression engine is used directly, which means that the JavaScript rules rather than the XPath rules apply

However I get an error trying to use ;j as a flag. What seems to not raise an error is simply the suffix j as in e.g. analyze-string(., '\bcan\b', 'ij')/fn:match => count().

Is the documentation wrong or the implementation not doing what the documentation says?


Replies (1)

Regular expression matching using JavaScript regular expression syntax based on ;j flag? - Added by Norm Tovey-Walsh almost 2 years ago

I can’t say off the top of my head; I created
https://saxonica.plan.io/issues/4913 to track this.

Saxonica Developer Community writes:

    (1-1/1)

    Please register to reply