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].

Get XSLT, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.