3 Replies Latest reply on Feb 13, 2014 3:21 PM by MadMac55

    GREP expression help to find broken paragraphs

    tusharde

      My goal is to find paragraphs that are broken in between a sentence (see image) and fix them into a complete sentence. My approach was to find a carriage return ("\r") with a negative look behind targetting puncutations (.,?). It works fine but it also ends up selecting double returns(the empty paragraphs when i hit enter twice). Any thoughts on how i can avoid that?

       

      GREP:

       

      (\s*?)(?<![\.\?])\r
      

       

       

      Screen Shot 2014-01-14 at 1.12.30 PM.png