[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: why matches($title,'.*?(\.|,)\s*$')) can perform s
Subject: Re: why matches($title,'.*?(\.|,)\s*$')) can perform so much worse than matches($title,'(\.|,)\s*$'))|
From: Oliver Hallam <oliver@xxxxxxxxxxx>
Date: Wed, 13 Jul 2011 19:53:51 +0100
Again for information, for XQSharp we gave up using the .NET regex
engine as there were unresolvable issues with caseless matching of
back-references, and some horrible expansions for multibyte characters
and case insensitive matching corner cases. We now use a custom
implementation, which is about as naove as possible. We don't even
optimize for regular expressions starting with '^'.
On 13/07/2011 19:17, Michael Kay wrote:
On 13/07/2011 18:43, Oliver Hallam wrote:
That is interesting. I was aware that there are some very smart regex
engines out there, but wasn't aware that they had made it to any
XQuery/XSLT processors yet.
For information, Saxon is using the Java regex engine (even on .NET),
which isn't considered particularly smart by the regex cognoscenti.
(The XPath regular expression is translated into an equivalent Java
regular expression in cases where the syntax differs).
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format