

Task

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


str = "I am a string"
 
true? str.match(/string$/)
 { p "Ends with 'string'" }
 
false? str.match(/^You/)
 { p "Does not start with 'You'" }
 