kotest-assertions-core / io.kotest.matchers.regex / kotlin.text.Regex / shouldBeRegex

shouldBeRegex

infix fun Regex.shouldBeRegex(anotherRegex: Regex): Unit

Assert that Regex is equal to anotherRegex by comparing their pattern and options(RegexOption).

See Also

shouldNotBeRegex

beRegex