Webmozart\Expression\Expr::matches PHP Method

matches() public static method

Check that a value matches a regular expression.
public static matches ( string $regExp ) : Matches
$regExp string The regular expression.
return Webmozart\Expression\Constraint\Matches The created expression.
    public static function matches($regExp)
    {
        return new Matches($regExp);
    }

Usage Example

Esempio n. 1
0
 public function orMatches($regExp)
 {
     return $this->orX(Expr::matches($regExp));
 }
All Usage Examples Of Webmozart\Expression\Expr::matches