isMatch

fun isMatch(regex: String?, input: CharSequence?): Boolean

Return whether input matches the regex.

Return

true: yes

false: no

Parameters

regex

The regex.

input

The input.