note 42167 added to function.preg-match

From: Date: Thu, 06 May 2004 07:37:52 +0000
Subject: note 42167 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-69267@lists.php.net to get a copy of this message
If 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+42167 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42167&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42167&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69267) next »