void () { final RegExpLexer lexer = new RegExpLexer(EnumSet.noneOf(RegExpCapability.class)); doTest("\\b\\b{g}\\B\\A\\z\\Z\\G[\\b\\b{g}\\B\\A\\z\\Z\\G]", """ BOUNDARY ('\\b') BOUNDARY ('\\b{g}') BOUNDARY ('\\B') BOUNDARY ('\\A') BOUNDARY ('\\z') BOUNDARY ('\\Z') BOUNDARY ('\\G') CLASS_BEGIN ('[') ESC_CTRL_CHARACTER ('\\b') ESC_CTRL_CHARACTER ('\\b') CHARACTER ('{') CHARACTER ('g') CHARACTER ('}') INVALID_CHARACTER_ESCAPE_TOKEN ('\\B') INVALID_CHARACTER_ESCAPE_TOKEN ('\\A') INVALID_CHARACTER_ESCAPE_TOKEN ('\\z') INVALID_CHARACTER_ESCAPE_TOKEN ('\\Z') INVALID_CHARACTER_ESCAPE_TOKEN ('\\G') CLASS_END (']')""", lexer); }