note 42166 deleted from function.preg-match by nlopess

From: Date: Thu, 06 May 2004 13:24:59 +0000
Subject: note 42166 deleted from function.preg-match by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69277@lists.php.net to get a copy of this message
Note Submitter: Jorge Reteguín ---- 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('á'));

« previous php.notes (#69277) next »