grep(pattern, c(text1, text2)) # 1