Patrick
05/22/2020, 11:06 AMfun main() {
val str = "123test123"
val matches = Regex("""test""", RegexOption.MULTILINE).matches(str)
println(matches)
}
phldavies
05/22/2020, 12:56 PM/** Indicates whether the regular expression matches the entire [input]. */
actual infix fun matches(input: CharSequence): Boolean = doMatch(input, Mode.MATCH) != null
vs
/** Indicates whether the regular expression can find at least one match in the specified [input]. */
actual fun containsMatchIn(input: CharSequence): Boolean = find(input) != null
Patrick
05/22/2020, 12:56 PM