Hello List, Just a quick question; Xpressive seems not to compile when I use 0x?? instead of 'a' for regular expressions. Eg. sregex characters = +(set=0x20,0x0A,0x0D,0x20,0x33); Is there perhaps a way to accomplish this in Xpressive? Thank you, Etienne
Etienne Philip Pretorius wrote:
Hello List,
Just a quick question;
Xpressive seems not to compile when I use 0x?? instead of 'a' for regular expressions.
Eg. sregex characters = +(set=0x20,0x0A,0x0D,0x20,0x33);
Yes, because xpressive expects chars, not ints.
Is there perhaps a way to accomplish this in Xpressive?
Untested: sregex characters = +(set='\x20','\x0A','\x0D','\x20','\x33'); -- Eric Niebler BoostPro Computing http://www.boostpro.com
Eric Niebler wrote:
Etienne Philip Pretorius wrote:
Hello List,
Just a quick question;
Xpressive seems not to compile when I use 0x?? instead of 'a' for regular expressions.
Eg. sregex characters = +(set=0x20,0x0A,0x0D,0x20,0x33);
Yes, because xpressive expects chars, not ints.
Is there perhaps a way to accomplish this in Xpressive?
Untested:
sregex characters = +(set='\x20','\x0A','\x0D','\x20','\x33');
Thank you... exactly what I was looking for.
participants (2)
-
Eric Niebler
-
Etienne Philip Pretorius