validators\UrlValidator $pattern

$pattern public property

The regular expression used to validate the attribute value. The pattern may contain a {schemes} token that will be replaced by a regular expression which represents the $validSchemes.

public string $pattern = '/^{schemes}:\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(?::\d{1,5})?(?:$|[?\/#])/i'
doc_Yii
2016-10-30 17:14:11
Comments
Leave a Comment

Please login to continue.