Reply to Re: [PHP] preg for unicode strings?

Your name:

Reply:


Posted by Niels Ganser on 11/06/05 03:11

Andy,

you might want to check out
http://www.regular-expressions.info/unicode.html

Please note two things while using the described syntax:
1. You have to additionally use the u modificator.
2. While \p{Ll} for instance works in PHP, \p{Lowercase_Letter} doesn't.

Regards,
Niels


> 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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация