Of course this will delete all instances of 2 empty lines, so if you WANT 2 empty lines elsewhere, probably not the best solution. @NigelG’s is probably a smarter way to go.
I tried your advice too, @NigelG. The regex was a great idea but it only works for lists apparently. The \n\n at the end of a prompt only seemed to remove one return.
I think something weird may be happening with OpenAI. My app was generating beautiful chunks of language based on long reference passages a few days ago (basically summarizing the ref. language), and all the sudden started having problems and would only work with short reference passages. I haven’t experienced your specific issue, but my suspicion is it’s not a Bubble issue…
I’m trying to use regex to remove the two empty lines of open AI with the expression: /^\s*[\r\n]/gm.
I was able to remove the empty lines and the n/n in the text element with find and replace. But when I send this result for a multiline input to keep editing, the regex expression /^\s*[\r\n]/gm isn’t work. Am I doing something wrong?
my understanding is that the regex is executed only with the global flag, not the multiline. Try to create your regex with that in mind.
Also, if your regex is /asdf/ in the editor you need to input asdf.