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

2 lines
48 B
R

gsub(pattern, "pair of socks", c(text1, text2))