[Israel.pm] \w for utf8

Pinkhas Nisanov pinkhas at nisanov.com
Mon Aug 20 05:39:58 PDT 2007


Hi,

I need catch string that may include 'utf8' characters:
e.g.:

  my $str_utf8 = 'N-Größe';
  my @res = ( $str_utf8 =~ /(\w+)/g );
  print join( " ++ ", @res ), "\n";


it prints:

 N ++ Gr ++ e

but I need:

N ++ Größe


thanks
Pinkhas Nisanov


More information about the Perl mailing list