Regex Help - Obsidian to Anki plugin

I’m trying to create a custom regex using the the Obsidian to Anki plugin. I wanted it to work like this:

Q: Front field here

Still front field

A: Back field here

Still back field

Not back field anymore

I’ve tested the following regex in regex101 and it works, but when I try it in obsidian, it gets stuck scanning the vault indefinitely

^Q: ((?:.+\n|\n{0,1}.+)*)\n*A: (.+(?:\n{1,2}(?:^.{1,3}$|^.{4}(?<!<!--).*))*)

Does anyone know what’s the problem with my regex?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.