strikt-core / strikt.assertions / matches

matches

infix fun <T : CharSequence> Builder<T>.matches(expected: Regex): Builder<T>

Asserts that the subject is a full match for the expected regular expression.