note 19333 added to function.ereg

From: Date: Sun, 24 Feb 2002 03:05:36 +0000
Subject: note 19333 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-26976@lists.php.net to get a copy of this message
A mistake will be to use [[:alpha:]] to detect a valid string for non US people. The reason is that all characters using circumflex (eg: â), tilde (ã), umlaut (ä), ring (å), grave (à) and acute (á) will be ignored! My solution is to change [[:alpha:]] to [A-Za-zÀ-ÖØ-öø-ÿ] Enjoy! /jc -- http://www.php.net/manual/en/function.ereg.php http://master.php.net/manage/user-notes.php?action=edit+19333 http://master.php.net/manage/user-notes.php?action=delete+19333 http://master.php.net/manage/user-notes.php?action=reject+19333

« previous php.notes (#26976) next »