### Affected Version 1.2.0 ### API fluent, infix ### Platform jvm ### Kotlin Version 2.0.21 ### How to reproduce the problem? ```kotlin expect("🚩️ size : 0").toContain.exactly(1).regex("🚩️ s") ``` ### Describe the bug fails with (from proof branch): ``` I expected subject : "🚩️ size : 0" 🚩️ to contain : 🚩️ string matching regex : 🚩️ s (kotlin.text.Regex <162083492>) 🚩️ ▶ number of matches : 2 🚫️ is exactly : 1 ``` This is an edge case, it works if the pattern does not resolve to BnMS Node. For instance, the following works as expected: ```kotlin expect("🚩️ size : 0").toContain.exactly(1).regex("🚩️") ``` ### Expected behaviour should also find just one occurrence