

Task

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


if (Match(".* string$", REGEXP)==0) {
    Statline_Message("This line ends with 'string'")
}