Re: preg for unicode strings?

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

 



On 11/5/05, Andy Pieters <mailings@xxxxxxxxxxxxxxxx> wrote:>> I am doing some data validation and the following regexp fails> [\W]> When using characters like £ or €> The script is encoded in UTF-8
Are you using the 'u' modifier to put PCRE in utf-8 mode?
preg_match( '/\W/u', $text);
  -robin

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux