2 Replies Latest reply on Nov 19, 2011 1:39 AM by csm_phil

    Grep Placement Question.?

    கற்பனை (Imagine) Level 3

      Hi all,

       

      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";

          app.findGrep();

       

       

      Thanks in advance.  Any suggestion for to find the exact pattern using Grep expression.

       

      Regards,

      Imagine