Re: [xml] caret in regexp character class

On 2017-03-07 19:52, Liam R. E. Quin wrote:
On Tue, 2017-03-07 at 14:48 +0100, Per Hedeland wrote:

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
my reading of, 

Compare XSD 1.1 which is
clearer and more recent. The ^ doesn't need to be escaped and [ab^cd]
should match any of 5 characters (as it does in Perl).


Thanks for the pointer and the confirmation (also to Csaba Raduly)!
I have created (with


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]