.*[^>])>$/i', $value, $match); if (!array_key_exists('email', $match) || !filter_var($match['email'], FILTER_VALIDATE_EMAIL)) { $this->setError(_s('Invalid email address "%1$s".', $value)); return false; } } return true; } }