void () { test("'_t:[regex( *Object\\[\\] ) ] '_t2"); assertEquals("$t$ $t2$", myOptions.getSearchPattern()); final MatchVariableConstraint constraint = myOptions.getVariableConstraint("t"); assertTrue(constraint.isWithinHierarchy()); assertEquals("Object\\[\\]", constraint.getRegExp()); test("// 'Comment:[regex( .*(?:comment).* )]"); assertEquals("// $Comment$", myOptions.getSearchPattern()); final MatchVariableConstraint constraint1 = myOptions.getVariableConstraint("Comment"); assertEquals(".*(?:comment).*", constraint1.getRegExp()); }