ID: 14267
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: *Regular Expressions
Operating System: Linux Redhat 7.1
PHP Version: 4.0CVS-2001-11-28
New Comment:

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

Previous Comments:
------------------------------------------------------------------------

[2001-11-28 10:14:15] [EMAIL PROTECTED]

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

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14267&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to