note 42166 added to function.preg-match
| From: | "JorgeRetegu�n" at rn2 dot php dot net | Date: | Thu, 06 May 2004 07:36:09 +0000 |
| Subject: | note 42166 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69266@lists.php.net to get a copy of this message | ||
I you want to match all spanish characters (áéíóúÁÉÍÓÚñÑüÜ), this regexp could be
useful:
/^[a-zA-Z\xe1\xe9\xed\xf3\xfa\xc1\xc9\xcd
\xd3\xda\xf1\xd1\xfc\xdc ]+$/
(keep it one line)
I got the hex values this way:
echo dechex(ord('á'));
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42166
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42166&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42166&report=yes
Search -- http://master.php.net/manage/user-notes.php