

Task

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


load'regex'               NB.  Load regex library
str =: 'I am a string'   NB.  String used in examples.