Project

Profile

Help

Bug #3833

Updated by Debbie Lockett over 6 years ago

Bug discovered while working on Issue #3790. 

 Attempted to convert a supplied string to a regex string (e.g. suitable for use in xsl:analyze-string) by escaping characters explicitly: 

 ~~~ xml 

 fn:replace($search, "[\^\.\\\?\*\+\{\}\(\)\|\$\[\]]", "\\$0" ) 

 ~~~ 


 However this did not work as expected. Apparently there is some problem handling special characters in the replacement string (the 3rd arg of fn:replace) in the Saxon-JS implementation.

Back