Propel API
Class

NotMatchValidator

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

isValid(ValidatorMap $map, $str)

Whether the passed string matches regular expression.

Details

at line 62
public isValid(ValidatorMap $map, $str)

Whether the passed string matches regular expression.

Parameters

ValidatorMap $map
$str