Patrick
05/22/2020, 11:07 AMfun main() {
val str = "123test123"
val matches = Regex("""test""", RegexOption.MULTILINE).matches(str)
println(matches)
}
Slack Conversationgian
05/22/2020, 11:24 AMPatrick
05/22/2020, 11:26 AMgian
05/22/2020, 11:28 AMcontainsMatchIn
instead of matches
ilya.gorbunov
05/22/2020, 11:28 AMregex in str
, it's the same as containsMatchIn
but in operator form.Patrick
05/22/2020, 11:31 AMnkiesel
05/22/2020, 7:37 PMRegex("test").find("123test456")?.groupValues