I would like to do the InDesign grep find and replace method for acheiving below replacments.
The requirement is third line of text need to move into the first line with carriage return, is it possible in Grep replacements.
Note: I've placed the contents is for sample but in live it a dynamic contents.
I tried myself with peace of code here.
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findChangeGrepOptions.includeFootnotes = false;
app.findChangeGrepOptions.includeHiddenLayers = false;
app.findChangeGrepOptions.includeLockedLayersForFind = false;
app.findChangeGrepOptions.includeLockedStoriesForFind = false;
app.findChangeGrepOptions.includeMasterPages = false;
app.findGrepPreferences.findWhat = "Blabla (\\d+.\\d+)\\r(*.)\\r||bla-bla-bla||\\r";
Thanks in advance. Any suggestion for to find the exact pattern using Grep expression.