matches

Deprecated

Warning since 1.6

Use Regex.matches() instead

Replace with

regex.toRegex().matches(this)

Since Kotlin

1.1