Issues with running GREP formula more than once
InDesign Version: 21.4.1
I am formatting an Author Index. Some of the authors in the book that I am working on come in with multiple authors per paragraph with the corresponding page number listed once at the end. I use GREP to separate the authors onto their own lines with the page number.
GREP formula:
Find: ^(.+?), (.+)\t(\d+)$
Change To : $1\t$3\r$2\t$3
The format I start with:
Coby Morvinski, Yaniv Shani 1086
The format I finish with:
Coby Morvinski 1086
Yaniv Shani 1086
I have to run this formula multiple times so that it separates the larger groups (there can be up to 12 authors per paragraph). It does just fine for the first 3-4 times, and then will start causing InDesign to crash. The only fix I have found is to copy the authors out of InDesign, run the GREP formula through an outside app like Sublime Text and then copy it back into InDesign.
Things that I have tried:
-Computer Restart
-Clearing preferences,
-Saving the file as a .idml
-Copying out a smaller portion of text into a new document and just running the GREP on that.
-Working through the document by selecting “Change/Find” instead of “Change All”
I can run a new GREP formula and it will work fine. It is only when I go back to re-running the formula that originally caused the crash that it will start crashing again. This is not the only GREP formula that I have trouble with when I try to run it multiple times.