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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.