public Criteria regex ( Pattern pattern ) { notNull ( pattern , "pattern can not be null" ) ; this . criteriaType = RelationalOperator . REGEX ; this . right = ValueNode . toValueNode ( pattern ) ; return this ; }
Creates a criterion using a Regex