Re: \W and [\W]

2004-01-02 Thread Nick Ing-Simmons
Eric Cholet [EMAIL PROTECTED] writes: Le 1 janv. 04, 17:50, Rafael Garcia-Suarez a crit : +(However, and as a limitation of the current implementation, using +C\w or C\W Iinside a C[...] character class will still match +with byte semantics.) I don't think it applies to \w, only \W. \x{df

Re: \W and [\W]

2004-01-02 Thread Jarkko Hietaniemi
Do negated classes work at all ? What does /[^\w]/ do ? (I looked at this stuff ages ago and I thought unicode classes (including negated ones worked, if that is true then fix may just be the magical \W expander expanding to wrong thing...) I think it's the evil characters in the 0x80..0xFF

Re: \W and [\W]

2004-01-01 Thread Andreas J Koenig
On Wed, 31 Dec 2003 16:21:36 +0100, Eric Cholet [EMAIL PROTECTED] said: Can anyone enlighten me as to why \W behaves differently depending on wether it's inside or outside of a character class, for certain characters: I have reported this as bug 18281 http://guest:[EMAIL PROTECTED

Re: \W and [\W]

2004-01-01 Thread Rafael Garcia-Suarez
Andreas J Koenig wrote in perl.unicode : On Wed, 31 Dec 2003 16:21:36 +0100, Eric Cholet [EMAIL PROTECTED] said: Can anyone enlighten me as to why \W behaves differently depending on wether it's inside or outside of a character class, for certain characters: I have reported

Re: \W and [\W]

2003-12-31 Thread Eric Cholet
: 1 2 3 Grobritannien -- #!/usr/bin/perl -w use strict; use encoding 'utf8'; my $x = 'Grobritannien'; $\ = \n; print '1 ', $x =~ /(\W+)/; print '2 ', $x =~ /([\W]+)/; print '3 ', $x =~ /(\w+)/; exit(0); -- Eric Cholet