W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > October 2012

Re: / missing in echar grammar rule

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 22 Oct 2012 13:47:17 +0100
Message-ID: <50854055.6000607@epimorphics.com>
To: public-rdf-dawg-comments@w3.org


On 11/10/12 15:27, Gunnar Aastrand Grimnes wrote:
> Hi,
>
> This is a minor thing, but the ECHAR grammar rule is given as:
>
> ECHAR	  ::=  	'\' [tbnrf\"']
>
> but a \\ is missing it has to be
>
> ECHAR	  ::=  	'\' [tbnrf\"'\\]
>
> so that you can parse escaped \'s like the one from test-case regex-query-003:
>
> SELECT ?val
> WHERE {
> 	ex:foo rdf:value ?val .
> 	FILTER regex(?val, "example\\.com")
> }
>
> Thanks!
>
> - Gunnar

[tbnrf\"'] is a set of characters - no escape rules.

So the character \ really is a \, not an escape of the "

i.e. it is there already.

	Andy
Received on Monday, 22 October 2012 12:47:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 22 October 2012 12:47:51 GMT