Appendix E. [2.0] Regular Expressions
The regular expression language used by XSLT 2.0, XPath 2.0,
and XQuery 1.0 is a superset of the XML Schema regular expression
language. Regular expressions are used in the XSLT 2.0 [2.0] <xsl:analyze-string> element and the XPath 2.0 and XQuery
1.0 functions [2.0] matches(), [2.0] replace(), and [2.0] tokenize().
This appendix defines the syntax and capabilities of regular expressions in XSLT 2.0, XPath 2.0, and XQuery 1.0. The details of regular expressions are defined in XQuery 1.0 and XPath 2.0 Functions and Operators section 7.6, “String Functions that Use Pattern Matching.”
Note
[XPath] The Functions and Operators spec extends the XML Schema regular expression in several ways. Features unique to the XPath 2.0 and XQuery 1.0 regular expression language are indicated with the text [XPath].
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access