6 Replies Latest reply on Apr 19, 2013 1:12 AM by Peter Kahrel

    GREP: Find multiple paragraphs between brackets

    matthew.wimer Level 1

      Attempting to write a grep that will find text, including paragraph breaks, between bracketed tags [EXT] and [/EXT].  It looks like this:

       

      Int hillestisite militam dolupta corera seque nonsers perrum aut aut por aut et et earum dolorio dolut re

      [EXT] m doluptae dolorem idebit pa dolendit, optassi mendae optam labor sita consecum

      conet ere, nihil etum sa conem dolessim rehenisquam con pos eatem ipistio odit acienetur ratis dolupti orenim et inveni officati undi reium faccae. Pienistecae n[/EXT]

      [EXT]onsed et aliciae plabor aut mos qui tem nobis quatis denihil latusantin estion recte explaborem ent quist, solest, omniendaecto bersperro dolest, volene sam autatur, volupta tiossit ab imuscia epernature et alitatuscia qui niendant que ne qu

      atiassit, et pa ditati res dolent, cum estis eatempo rerovid elenis nis volecu

      mquam quo eumet quis dolupta voles dollantium a quidi doloriori officilis mintior entini unt quo eost ma doluptiorro ea

      quibus a et fugiatibus excepuditi cus utecus moditatem consequ atemoditia doluptat dolum quos res doluptibus arum fu[/EXT]

      ga. Nam, quis minullor adignita soluptias etus sit quam quis am vendiciis alit ero eliq

       

      Here's my formula:

      \[EXT](.+\r.+)+\[/EXT]

      It will find the second set of brackets, the one with multiple paragraph breaks, but won't find the first set, the one with only a single paragraph break.

      Any ideas?

      Thanks!