http://www.php.net/preg_match
Citat:
Izzy
17-Aug-2006 12:27
Concerning the German umlauts (and other language-specific chars as accented letters etc.): If you use unicode (utf-8), you can match them easily with the unicode character property \pL (match any unicode letter) and the "u" modifier, so e.g.
<?php preg_match("/[\w\pL]/u",$var); ?>
would really match all "words" in $var - whether they contain umlauts or not. Took me a while to figure this out, so maybe this comment will safe the day for someone else :-)
|
Lepo covek napisao, al' nema ko da cita. A mislio sam da sve znam o reg. izrazima