Search start and end string using regex

  1. function to iterate over an array passed as argument and output those values which either start with “den” or end with “ly”.

  2. function to extract HTML tags from the string passed as argument.(‘<h1> hello </h1>‘)

  3. function to retrieve time from the string passed as argument to the
    function. Example :
    getTime(Random time at 19:08 on the clock 123:456’)
    OP = “19:08”