Grep replace goes wrong near endnote reference
- May 5, 2021
- 2 replies
- 8113 views
Hi,
While replacing the close quotes with GREP to one-by-one, its working fine. But useing replace all, the issue happen occuring, the same in coding also (Para breaking). Is this CC2020 bug or any connection with the endnote?
app.selection = NothingEnum.NOTHING;
app.findGrepPreferences = app.changeGrepPreferences = null; app.findChangeGrepOptions.includeFootnotes = true;
app.findChangeGrepOptions.includeHiddenLayers = false; app.findChangeGrepOptions.includeLockedLayersForFind = true; app.findChangeGrepOptions.includeLockedStoriesForFind = true; app.findChangeGrepOptions.includeMasterPages = false;
app.findGrepPreferences.findWhat = "(\\[LSQ\\].+?)~]";
app.changeGrepPreferences.changeTo="$1[RSQ]";
myFoundItems =app.documents.item(0).changeGrep();
Kindly guide and share if any alternate. Recorded file is attached for your reference.
Thanks,
Selva
