regexpr(pattern, c(text1, text2))