class NotMatchValidator implements BasicValidator
A validator for regular expressions.
This validator will return true, when the passed value does *not* match
the regular expression.
If you do want to test if the value *matches* an expression, you can use
the MatchValidator class instead.
Below is an example usage for your Propel xml schema file.
<code>
<column name="ISBN" type="VARCHAR" size="20" required="true" />
<validator column="username">
<!-- disallow everything that's not a digit or minus -->
<rule
name="notMatch"
value="/[^\d-]+/"
message="Please enter a valid email adress." />
</validator>
</code>
Methods
boolean | isValid(ValidatorMap $map, string $str) |