RosettaCodeData/Task/Regular-expressions/R/regular-expressions-2.r

2 lines
36 B
R

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