You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
509 B

10 years ago
  1. <?php namespace Majestic\Validator;
  2. /**
  3. * @copyright NetMonsters <team@netmonsters.ru>
  4. * @link http://netmonsters.ru
  5. * @package Majestic
  6. * @subpackage validator
  7. * @since 2010-04-26
  8. */
  9. class EmailValidator extends RegexValidator
  10. {
  11. /**
  12. * @var string
  13. * https://tools.ietf.org/html/rfc5322#section-3.4.1
  14. * https://tools.ietf.org/html/rfc5321#section-4.5.3
  15. */
  16. protected $regex = '/^([a-z0-9._-]{1,64})\@([a-z0-9-]{2,250}\.)+\w{2,5}$/i';
  17. public function __construct(){}
  18. }