Patch #1409
closedOptionally Circumvent the Regex Crippler
0%
Description
SourceForge user: gschadow
I felt this was too ridiculous having had all my regexes
working well from prior versions of Saxon (7.8), Java
supporting all those so well, and now suddenly having to
redo them just because XPath version of regex is so
crippled (e.g., no word boundary \b match, which is not
easy to replace).
So, I went in and created an option to allow full regexes.
This simply shortcuts the RegexTranslator function. The
command line option is:
-fullregex
and the FeatureKey is
Files
Updated by Anonymous almost 20 years ago
SourceForge user: mhkay
Logged In: YES
user_id=251681
Sorry, but I am not prepared to endorse changes that modify
Saxon to be non-conformant with the W3C specifications. The
W3C specifications define mechanisms for extensibility of
the language, and we must live within these rules. If we
want to allow a different regex syntax, the way to do it is
through a different set of functions.
Michael Kay
Updated by Michael Kay over 11 years ago
Closed. There is now a (not well documented!) way of getting Saxon to accept native Java regular expressions, by including "!" at the end of the flags attribute. (I don' think it's tested, though).
Please register to edit this issue