2 Replies Latest reply on Sep 23, 2013 11:45 AM by TheOaksMan

    Help with Grep Lookaround

    TheOaksMan

      I am trying to find the first occurance of a text block (American) and everything up to but not including the second occurance of the same text block. The type of content between the two blocks can be anything, including fractions. The number of lines between the two occurances varies.

       

      I am using the following grep search statement to no avail.

       

      ((?<=)\AAMERICAN)(\d*[\l\u]*.* *\w*\u*\l* *)((?!)AMERICAN)

       

      Can someone please lead me in the correct direction?

       

      Thanks for your time and help.