So I have a regex formula that works. But when I try to use my app to generate another output, the extract with regex stops working and stops producing an output.

Then 10 mins later it’s working again.

I feel like this is a shot in the dark, but do anyone know what is wrong.

These are the steps I take before it breaks.

My app generates marketing copy wireframes and the extracts with regex allows me to use one ai output for everything I need.

For one brand I generate the wireframe and it the formulas work.

Then when I try and generate another wireframe for a different brand profile, the regex stops working.

I am also noticing that when I trouble shoot and delete both wireframe outputs from my Database, that when I run step by step, I am seeing the element that holds the wireframe output pop up when it should not. I do no know if that helps but I am trying to give as much info as possible.

These are the working formulas

This is the element with the wireframe that should not be visible at the moment:

I think I figured out my issue. The Ai is outputting a different format every time, which is messing up any regex formula.

Edit: Yep that was the issue. When using regex, what the output is matters every time.

So I just used ChatGPT to refine the prompt to make sure the output is the same every time so the regex formula to work.