Re: Regex one-liner to find several multi-line blocks of text in a single file

2012-11-01 Thread Jim Gibson
On Nov 1, 2012, at 12:44 AM, Thomas Smith wrote: > Hi, > > I'm trying to search a file for several matching blocks of text. A sample > of what I'm searching through is below. > > What I want to do is match "# START block #" through to the next > "# END block #" and repeat that t

Re: Regex one-liner to find several multi-line blocks of text in a single file

2012-11-01 Thread Paul Johnson
On Thu, Nov 01, 2012 at 12:44:08AM -0700, Thomas Smith wrote: > Hi, > > I'm trying to search a file for several matching blocks of text. A sample > of what I'm searching through is below. > > What I want to do is match "# START block #" through to the next > "# END block #" and re

Regex one-liner to find several multi-line blocks of text in a single file

2012-11-01 Thread Thomas Smith
Hi, I'm trying to search a file for several matching blocks of text. A sample of what I'm searching through is below. What I want to do is match "# START block #" through to the next "# END block #" and repeat that throughout the file without matching any of the text that falls be