matches() public static méthode

Check that a value matches a regular expression.
public static matches ( string $regExp ) : Matches
$regExp string The regular expression.
Résultat Webmozart\Expression\Constraint\Matches The created expression.
Exemple #1
0
 public function orMatches($regExp)
 {
     return $this->orX(Expr::matches($regExp));
 }
Exemple #2
0
 public function andMatches($regExp)
 {
     return $this->andX(Expr::matches($regExp));
 }