From: [EMAIL PROTECTED] Operating system: Linux 2.2.16-SMP PHP version: 4.0.4pl1 PHP Bug Type: Regexps related Bug description: \. after \- does not work I tried to check email with $check = ereg('^[0-9A-Za-z_\-\.]+@[0-9A-Za-z_\-]+\.[0-9A-Za-z_\-\.]+[0-9A-Za-z_\-]+$',$email); This does not work with '[EMAIL PROTECTED]', for example, althoug the regular expression is correct. It works this way in any other programming language. But if you write it in the following way it also works fine in PHP: $check = ereg('^[\.0-9A-Za-z_\-]+@[0-9A-Za-z_\-]+\.[\.0-9A-Za-z_\-]+[0-9A-Za-z_\-]+$',$email); Maybe the parser thinks of "-" as the range separator, althoug it is written as \- ? -- Edit Bug report at: http://bugs.php.net/?id=11461&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]