wintallo Posted July 23, 2007 Share Posted July 23, 2007 Hello, what does this error mean? Warning: ereg() [function.ereg]: REG_ERANGE in /home/wintallo/public_html/login_sys/register.php on line 27 Line 27 is: if (ereg($pattern_username, trim($_POST['username']))) { (where $pattern_username = '\b[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}\b' And $_POST['username'] was "wintallo". Thanks! Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 23, 2007 Share Posted July 23, 2007 [a-z]{0,50} <<<< all you need Quote Link to comment Share on other sites More sharing options...
effigy Posted July 23, 2007 Share Posted July 23, 2007 You're using PREG syntax in an EREG function; try moving to preg_match for starters. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.