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