xsl-list
[Top] [All Lists]

Re: [xsl] why matches($title,'.*?(\.|,)\s*$')) can perform so much worse than matches($title,'(\.|,)\s*$'))

2011-07-13 13:17:55
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).

Michael Kay
Saxonica

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--