find a list of strings inside string scala
val a = "some random test message" val keys = List("hi","random","test") keys.exists(a.contains)
Source: stackoverflow.com
val a = "some random test message" val keys = List("hi","random","test") keys.exists(a.contains)