View Single Post
  #5 (permalink)  
Old September 9th, 2019, 02:52 AM
msambasiva@gmail.com msambasiva@gmail.com is offline
Registered User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2017
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default

It's working with basic regex as /\*.*?\*/.

But I am trying for robust regex as below to strip off multi line comments,
<xsl:variable name="stripped"
select="replace($merged,
'/\*[^*]*\*+(?:[^\/*][^*]*\*+)*/', '', 'ms')"/>
Some getting below error mesage.

Severity: fatal
Description: FORX0002: Syntax error at char 11 in regular expression: Non-capturing groups allowed only in XPath3.0
URL: http://www.w3.org/TR/2005/WD-xpath-f...1/#ERRFORX0002

Similar regex is working fine in Perl scripting but failing with xslt2.0.

Any clue would be great help!

Thanks in advance,
Samba.
Reply With Quote