regex issues with 'q' flag in fn:tokenize

Bug #1188100 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Committed
Undecided
Paul J. Lucas

Bug Description

From http://www.w3.org/TR/xpath-functions-30/#regex-syntax:

"q: if present, all characters in the regular expression are treated as representing themselves, not as metacharacters. In effect, every character that would normally have a special meaning in a regular expression is implicitly escaped by preceding it with a backslash.

Furthermore, when this flag is present, the characters $ and \ have no special significance when used in the replacement string supplied to the fn:replace function.

This flag can be used in conjunction with the i flag. If it is used together with the m, s, or x flag, that flag has no effect."

The test-cases "fn-tokenize-31" and "fn-tokenize-33" from "fn-tokenize" test-set are failing: please see attached log.

Tags: fots

Related branches

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :
Changed in zorba:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.