Hi bhussain,
“Match” means regular expression. Below is the definition:
Matches Operator
Matches a field against any valid Java Regular Expression. Typically that regexp is a String, but variables that resolve to a valid regexp are also allowed. It is important to note that different from java, if you write a String regexp directly on the source file, you don't need to escape '\'. Example:
Example 6.12. Regular Expression Constraint
Cheese( type matches “(Buffalo)?\S*Mozerella” )
Not Matches Operator
Any valid Java Regular Expression can be used to match String fields. Returns true when the match is false. Typically that regexp is a String, but variables that resolve to a valid regexp are also allowed.It is important to note that different from java, if you write a String regexp directly on the source file, you don't need to escape '\'. Example:
Example 6.13. Regular Expression Constraint
Cheese( type not matches “(Buffulo)?\S*Mozerella” )
Regards,
Shigang Liu