preg for unicode strings?

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

 



Hi List

I am doing some data validation and the following regexp fails

[\W]

When using characters like £ or €

Obviously because they are technically more then one character, even though 
they are only displayed as one.

The script is encoded in UTF-8

Anybody know a fix for this?

With kind regards


Andy


-- 
Now listening to The Prophet - I Can't Stand It on amaroK
Geek code: www.vlaamse-kern.com/geek
Registered Linux User No 379093
If life was for sale, what would be its price?
www.vlaamse-kern.com/sas/ for free php utilities
--

Attachment: pgp1fGq2Uyssi.pgp
Description: PGP signature


[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