Constraint Interfaces, Classes and Traits RegularExpression Constraint that asserts that the string it is evaluated for matches a regular expression. LogicalNot Logical NOT.