Optional
options: ValidationOptionsChecks if the given value is a string that does not match the given regular expression.
// Ensure the value does not start with "foo".
@NotMatches(/^foo/)
value: string = 'bar'
// Ensure the value does not include "foo", ignoring case.
@NotMatches('foo', 'i')
value: string = 'bar'
Optional
modifiers: stringOptional
options: ValidationOptions
Checks if the given value is a string that does not match the given regular expression.
Example