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.
Beispiel #1
0
 public function orMatches($regExp)
 {
     return $this->orX(Expr::matches($regExp));
 }
Beispiel #2
0
 public function andMatches($regExp)
 {
     return $this->andX(Expr::matches($regExp));
 }