Regular Expressions Are Supported

Although XSLT 1.0 supports functions such as contains(), substring-before(), and substring-after(), these are no substitute for regular expressions. The regular expression support in XSLT 2.0 is very powerful and flexible. See the discussions of the [2.0] <xsl:analyze-string> element and the [2.0] matches()[2.0] replace(), and [2.0] tokenize() functions for the details on regular expression support. Appendix E has a complete overview of the regular expression syntax used in XSLT 2.0 and XPath 2.0.

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.