Alex Muir wrote:
Is there any way to avoid a syntax error with a regex containing both
'" for example ['"](.*?)["'] in the following select.
<xsl:value-of select="matches(., '['"](.*?)["']')"/>
You need to escape the inner ' by doubling it
<xsl:value-of select="matches(., '[''"](.*?)["'']')"/>
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--