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

4 lines
88 B
R

pattern <- "string"
text1 <- "this is a matching string"
text2 <- "this does not match"