Categories

PHP email validation using preg_match

PHP logo

After my last post about email validation using PHP’s eregi, a friend pointed out that it did not allow “+” signs to be entered… A quick test to establish whether the “+” sign was legal in an email address returned a positive result. And a quick check here quickly established the ereg and eregi are now deprecated PHP functions, and that I should look to preg_match for a [...]