

Task

   match a string against a regular expression
   substitute part of a string using a regular expression


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