@Test
fun asas() {
assertTrue(Regex("(1)+2").matches("12"))
}
Here it is “matching”.
j
jimn
10/29/2019, 5:51 PM
i found the answer to my question. it is not visible in the debugger. Regex.fromLiteral() is the source of pattern above. something about the Regex object state executes the pattern differently