Hi how to write regular expressions matching against Unicode (eg., UTF-8) strings?

For instance, in my regexp:

qr/^([.<>@ \w])*$/

I am using \w because here: http://perldoc.perl.org/perlretut.html it says:

=======================================================================
\w matches a word character (alphanumeric or _), not just [0-9a-zA-Z_] but also digits and characters from non-roman scripts
=======================================================================

Unfortunately, this doesn't seem to work with non-ASCII. :-/

Is this a configuration issue?

Thanks!
STF

=======================================================================
http://eisenbits.homelinux.net/~stf/
OpenPGP: DFD9 0146 3794 9CF6 17EA  D63F DBF5 8AA8 3B31 FE8A
=======================================================================

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to