user818700
user818700

Reputation:

Regular expressions in XSLT

Been struggling to find a nice list of regex that is used in XSLT. Specifically looking for 'greater than', 'smaller than', 'equal to' etc regex.

If anyone can push me in the right direction it would be of great help. Thanks very much!

Upvotes: 0

Views: 207

Answers (2)

Michael Kay
Michael Kay

Reputation: 163595

In the XSLT 2.0 regex dialect, the characters <, =, and > do not need to be escaped at the regex level. But of course < needs to be escaped at the XML level, using &lt;

Upvotes: 3

Siva Charan
Siva Charan

Reputation: 18064

If my understanding is correct,

Regex to match the >, <, = and soon

\>
\<
\=

use \ before a character to match

Upvotes: -1

Related Questions