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! Link to comment https://forums.phpfreaks.com/topic/61429-solved-ereg-error/ Share on other sites More sharing options...
redarrow Posted July 23, 2007 Share Posted July 23, 2007 [a-z]{0,50} <<<< all you need Link to comment https://forums.phpfreaks.com/topic/61429-solved-ereg-error/#findComment-305708 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. Link to comment https://forums.phpfreaks.com/topic/61429-solved-ereg-error/#findComment-305711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.