Removing sections from text if they match criteria

Hey all,

I’ve been trying to send a list of available time slots as a webhook response. I have a long string of date and time slots for the following 7 days (currently in a Set Variable module). I also have an array of objects each with a date - representing the time slots that are not available - and I’m looking to remove the time slots that are not available from the original list.

The two challenges I’m facing is

  1. Segregating individual slots from the long list to be compared with the unavailable ones
  2. Comparing them and leaving out the ones that are unavailable

Any ideas on how I could get something like this going in Make? All inputs are greatly appreciated.