note 24298 added to function.ereg
| From: | ferlopes at hotmail dot com | Date: | Mon, 12 Aug 2002 18:16:07 +0000 |
| Subject: | note 24298 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34880@lists.php.net to get a copy of this message | ||
I´m sorry, this is just a LITTLE CORRECTION for my note. If you (admin) can EDIT and CORRECT it, I
would apreciate. Here it goes the definitively one. Thanks! (Added the Ç and ç).
FINAL NOTE:
In addition to JC comment, about non US languages, I´m adding a specific
way of checking portuguese words, with JUST used characters, like ã, é, ú,
ô. In portuguese, the å or è is not used.
I suggest this expression:
$portuguese_expr='^[A-Za-zÁáÂâÃãÀàÉéÍíÓóÕõÔôÚúÜüÇç]{1,}$';
--
http://www.php.net/manual/en/function.ereg.php
http://master.php.net/manage/user-notes.php?action=edit+24298
http://master.php.net/manage/user-notes.php?action=delete+24298
http://master.php.net/manage/user-notes.php?action=reject+24298