← Back to team overview

zorba-coders team mailing list archive

[Bug 1023168] Re: Non-single-char-escapes in regex character ranges not caught

 

** Description changed:

  Regular expressions like:
  
-   [\s-A]
-   [A-\w]
+   [\s-A]
  
  i.e., those that involve non-single-character-escapes inside character
  ranges are illegal according to "XML Schema Part 2: Datatypes Second
  Edition: F Regular Expressions." ICU either does not consider this an
  error or does not catch it. The Zorba code that translates XQuery
  regular expressions into ICU regular expressions also doesn't check for
  it -- it's non-trivial to do.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1023168

Title:
  Non-single-char-escapes in regex character ranges not caught

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Regular expressions like:

    [\s-A]

  i.e., those that involve non-single-character-escapes inside character
  ranges are illegal according to "XML Schema Part 2: Datatypes Second
  Edition: F Regular Expressions." ICU either does not consider this an
  error or does not catch it. The Zorba code that translates XQuery
  regular expressions into ICU regular expressions also doesn't check
  for it -- it's non-trivial to do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1023168/+subscriptions


References