kotlin.text.matches
matches
inline infix fun CharSequence.matches(regex: Regex): Boolean
Returns true
if this char sequence matches the given regular expression.
inline fun String.matches(regex: String): Boolean
Platform and version requirements: JS