I need help writing regex to remove a word using XSLT.
I need to change the output of my XML file’s “detailpath” from:
/events/262/26207
…to simply:
262/26207
The XSL is:
<xsl:value-of select="detailpath"/>
How can I remove “/events/”?
Thanks in advance.
The regex pattern would simply be
'/events/'You can use it in an XSLT 2.0 replace() function call:
You can optionally specify flags