RE: Regular Expressions in XQuery 1.0 and XPath 2.0?

> > In XQuery 1.0 / XPath 2.0 can a regular expression, for example, be
> used
> > as an argument to the function xf:contains()?
> 
> No.  The regular expressions supported in the specifications 
> currently can only be used via the xf:matches function 
> described in Section 6.3.15 xf:matches of 
> http://www.w3.org/TR/xquery-operators/#func-matches
> 

Paul is almost right... But there are two further functions that use regular
expressions, namely xf:replace() and xf:tokenize().

Michael Kay

Received on Thursday, 24 October 2002 18:12:18 UTC