Need help with a GREP
Hello!
I use a lot of cross-refs which consist of a chapter number and some text, separated by a space and everything enclosed in quotation marks. Example: "1.1 This is an example"
I made a GREP to find them: (")(\d+.+?) (.+?)(")
For some reason, using the placeholders for left and right double quotation marks doesn't work in my document, but in another, so I used the "any" placeholder. So far, this GREP finds all cross-refs.
However, it's supposed to stop at the end, at the right double quotation mark that encloses the cross-ref.
Some of the headlines the cross-refs are made from also contain their own quotation marks, so that some of the cross-refs turn out as: "1.1 This is "another" example"
What happens when using the GREP? It would stop at the first right quotation mark. I have tried a lot, but I cannot find the correct extension for my GREP, to sort of skip both or all of the inner quotation marks.
Anyone has a solution, other than to replace the double quotation marks in the headlines by single ones? This would of course solve the problem. Thanks in advance.
