validators\EmailValidator $pattern

$pattern public property

The regular expression used to validate the attribute value.

See also http://www.regular-expressions.info/email.html.

public string $pattern = '/^[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/'
doc_Yii
2016-10-30 17:13:34
Comments
Leave a Comment

Please login to continue.