matches

Common
JVM
JS
Native
1.0
infix fun CharSequence.matches(regex: Regex): Boolean

Returns true if this char sequence matches the given regular expression.

JS
1.1
fun String.matches(regex: String): Boolean