Skip to content

Regexp

Constrains a string property’s value against a regular expression.

Backed by Quiote\Validator\RegexValidator.

final class Regexp

Since1.0.0
SourceRequest/Attribute/Constraint/Regexp.php
PropertyTypeDescription
$matchboolreadonly.
$message?``stringreadonly.
$patternstringreadonly.

public function __construct(string $pattern, bool $match = true, ?string $message = null): mixed

ParameterTypeDescription
$patternstring
$matchbool
$message?``string

Returns mixed