9 Replies Latest reply on Apr 30, 2014 5:14 AM by Obi-wan Kenobi

    Can Paragraph Grep Style look behind on previous paragraph?

    Karl Z Level 1

      Hi,

       

      I love Grep styles but they do illude me sometimes...

       

       

      So.

      I have two parapraph styles, A and B.

       

      -----

      Text in paragraph styled with paragraph style A ends with x

      (Text in paragraph styled with paragraph style B.)

       

      Text in paragraph styled with paragraph style A ends with y

      (Text in paragraph styled with paragraph style B.)

      ----

       

      Now, I would like to find the "(" and ")"  ... but only if positive look behind says that behind it there is "x" and a paragraph-break (\r)  = kind of like this     (?<=x\r)\(.+\)

       

       

      Is it possible to make a look behind match that looks on the paragraph behind it - even though it has a different paragraph-style?

      I'd like to be able to avoid find-replace.

       

      Thanks.

      // K