I have text like
question 1, chapter 1
...
solution for question 1, chapter 1
...
question 2, chapter 1
...
I am trying to figure out how to detect, via "VS Code search and replace" regex, questions that do not have a solution. I have tried variations of question (\d+), chapter (\d+)\n(.*\n+)solution for question (?!\1)
. The idea is I would match, if question 3 does not have a solution, question 3 when it would negate at "solution for question 4". This does not seem to work. I'm unsure why.
I have looked at a few other questions, but I can't figure it out with that information