- NotMatches(pattern, options?): PropertyDecorator
Parameters
- pattern: RegExp
Optional
options: ValidationOptions
Returns PropertyDecorator
- NotMatches(pattern, modifiers?, options?): PropertyDecorator
Parameters
- pattern: string
Optional
modifiers: stringOptional
options: ValidationOptions
Returns PropertyDecorator
Checks if the given value is a string that does not match the given regular expression.
Example