<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3260</bug_id>
          
          <creation_ts>2006-05-09 11:21:22 +0000</creation_ts>
          <short_desc>Use of &quot;-&quot; in regular expressions</short_desc>
          <delta_ts>2008-06-13 19:09:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Datatypes: XSD Part 2</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>cluster: regex</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P1</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9674</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-05-09 11:21:22 +0000</bug_when>
    <thetext>QT approved comment

(General comment) in regular expressions defining permitted values for data types, the character &quot;-&quot; is sometimes preceded by &quot;\&quot; and sometimes not. The schema regex syntax, I believe, does not permit the &quot;\&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9746</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-05-11 02:07:16 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; (General comment) in regular expressions defining permitted values for data
&gt; types, the character &quot;-&quot; is sometimes preceded by &quot;\&quot; and sometimes not. The
&gt; schema regex syntax, I believe, does not permit the &quot;\&quot;.

There was a time when there was a question of how to reconcile the use of &apos;-&apos; as
a metacharacter in an seRange, and during that time some REs were written with
escaped &apos;-&apos; characters.  They need to be cleaned up, but they are essentially typos
so we did not hold up Last Call to fix them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20326</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-05-30 04:05:21 +0000</bug_when>
    <thetext>I believe the premise of the comment is faulty:  there is a single-character
escape for &quot;-&quot; which can be used whenever &quot;-&quot; itself must be denoted,
whether inside a character-class expression or outside it.  Consistency
and clarity need to be weighed, sometimes against each other.  

So I believe the correct resolution of this issue is as WORKSFORME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20463</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-06-13 19:09:37 +0000</bug_when>
    <thetext>The XML Schema WG discussed this issue at its telcon of 13 June 2008,
and agreed that in view of the work we have recently done on 
regular expressions, which has removed some of the variation in the
use of - in the lexical-space regular expressions, this issue should
be closed as FIXED.

We reminded ourselves that bug 5321 on the EBNF notation used to 
define the regex language is still open; MK pointed out that some
confusion arises from the fact that the grammar notation uses some
regex-like constructions, but not always exactly the same regex
constructions as the regex language we are defining.  The editors
expressed a hope that we could reduce the opportunities for confusion
by resolving 5321, which is classed editorial.

Michael, if you would report this resolution to QT and indicate their
acceptance or objection in the usual way, it would be helpful.  Thank you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>