void () { String s1 = "<body><p class=\"11\"> AAA </p><p class=\"22\"></p> <p> ZZZ </p> <p/> <p/> <p/> </body>"; String s2 = "<p '_a{0,0}=\"'_t:[ regex( 11 ) ]\"> '_content? </p>"; assertEquals(5, findMatchesCount(s1, s2, XmlFileType.INSTANCE)); }