void () { final RegExpLexer lexer = new RegExpLexer(EnumSet.of(OCTAL_NO_LEADING_ZERO, MIN_OCTAL_2_DIGITS)); doTest("\\1()\\1\\11[\\1\\11]", """ BAD_OCT_VALUE ('\\1') GROUP_BEGIN ('(') GROUP_END (')') BACKREF ('\\1') OCT_CHAR ('\\11') CLASS_BEGIN ('[') OCT_CHAR ('\\1') OCT_CHAR ('\\11') CLASS_END (']')""", lexer); }