W3C home > Mailing lists > Public > public-multilingualweb-lt@w3.org > April 2013

Re: [Issue-67] [Action-385] Work on regex for validating regex subset proposal

From: Jirka Kosek <jirka@kosek.cz>
Date: Mon, 08 Apr 2013 19:33:58 +0200
Message-ID: <5162FF86.8010506@kosek.cz>
To: Felix Sasaki <fsasaki@w3.org>
CC: Pablo Nieto Caride <pablo.nieto@linguaserve.com>, public-multilingualweb-lt@w3.org
On 8.4.2013 18:48, Felix Sasaki wrote:

>> I'm not sure whether this ABNF does what it should do. For example this
>> grammar allows ^ almost anywhere but I think that in most RE engines ^
>> should directly follow [ if it's meant as a negation.
> 
> Agree - you could resolve that by removing neg from
> char = [neg] BMP+escapes
> and change
> allowedCharacters = start 1*range end ["+"]
> to
> allowedCharacters = start [neg] 1*range end ["+"]

Yes, this resolves this one particular issue. I haven't been tracking RE
discussion that closely, but I'm not sure whether it's clear what should
be supported. My recollection that what people asking for change wanted
was something like:

[11]   	charClass (http://www.w3.org/TR/xmlschema-2/#nt-charClass)

just without allowing following productions:  MultiCharEsc, catEsc  and
complEsc.

This is very different from what your simple ABNF allows. Might be
implementers know what subset of REs should be supported but this has to
be explicitly written down somewhere in the spec if we want to reach
interoperability.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------


Received on Monday, 8 April 2013 17:34:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:07 UTC