Re: [xml] caret in regexp character class

2017-03-08 Thread Per Hedeland
On 2017-03-07 19:52, Liam R. E. Quin wrote: > On Tue, 2017-03-07 at 14:48 +0100, Per Hedeland wrote: >> Hello, >> >> With libxml2-2.9.4, the regular expression [ab^cd] is equivalent to >> [^cd], i.e. it matches all characters except 'c' and 'd'. However >> from >> my reading of >> https://www.w3.or

Re: [xml] caret in regexp character class

2017-03-08 Thread Csaba Raduly
On Tue, Mar 7, 2017 at 2:48 PM, Per Hedeland wrote: > Hello, > > With libxml2-2.9.4, the regular expression [ab^cd] is equivalent to > [^cd], i.e. it matches all characters except 'c' and 'd'. However from > my reading of > https://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#regexs, (1) the > car

[xml] caret in regexp character class

2017-03-07 Thread Per Hedeland
Hello, With libxml2-2.9.4, the regular expression [ab^cd] is equivalent to [^cd], i.e. it matches all characters except 'c' and 'd'. However from my reading of https://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#regexs, (1) the caret has no special meaning unless it is the first character of the