4 Replies Latest reply on Sep 19, 2011 4:24 AM by Karl Z

    Want help: Grep find replace text over several paragraphs

    Karl Z

      Hi,

       

      I'm having trouble finding the text I'm after since it flows over several paragraphs.

      The number of paragraphs are different every time. The length of text varies. No rules can be applied.

       

      Like this:

       

      New paragraph starts and ends.

      New paragraph starts and ends.

      New paragraph starts and ends.

      New paragraph starts and ends.

       

      I'd like to be able to set a "marker" of some kind manually like...

       

      @start@New paragraph starts and ends.

      New paragraph starts and ends.

      New paragraph starts and ends.@end@

      New paragraph starts and ends.

       

      Now I'd like to be able to find this with find/change using grep; All the text between @start@ and @end@

       

      Tried all kinds of grep queries but can't seem to get the several paragraphs.

       

      Must be an easy way to do this...

      Most thankful for any pointers in the right direction.

       

      /K