|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-28 10:14 UTC] tonda at kmoch dot cz
Dear PHP.net,
i have this part of script:
if (Ereg("^[a-zA-Z0-9_]{1,8}$", $login)) { ....
.
.
And this doesn't work correctly on any string containing character 'c'.
P.S. I am using PHP Version 4.0.4pl1
System: Linux porky.devel.redhat.com 2.2.17-8smp #1 SMP Fri Nov 17 16:12:17
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
This works for me (on both 4.1.0RC3 and 4.2.0dev): <?php $login = "blact"; if (Ereg("^[a-zA-Z0-9_]{1,8}$", $login)) { echo "OK"; } ?> output: OK Please try the latest RC from www.php.net/~zeev/ and reopen if you still have the problem. However, I don't think this is a bug in PHP, but rather in your code. Derick