note 89077 deleted from function.ereg by danbrown
| From: | danbrown@php.net | Date: | Fri, 20 Feb 2009 15:22:25 +0000 |
| Subject: | note 89077 deleted from function.ereg by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150891@lists.php.net to get a copy of this message | ||
Note Submitter: empty dot ragnarok at gmail dot com
----
Validating user name
i think that the below expression may be helpful for others :) i have tested it personally and works
:) won't allow all the special characters
eg.
$pattern=[~`!@#$%^&*()=+{}|:;<>"/?, ]