import java.util.* fun main(args: Array) { val text = "We are testing!" val regex = """(?i)\b(i|you|we)\b""".toRegex() if (regex.containsMatchIn(text)) { println("match") } else { println("no match") } }