Re: It's regex time again - bigger and badder than ever before



"C3" <"C3"> wrote:

I have a text line that looks something like the following.

[snip]

I need to grab everything between HEADER_1 and HEADER_2, and everything
between HEADER_3 and HEADER_4, while keeping it in order. What would be the
simplest and/or cleanest way of doing this?


The way that the Perl FAQ suggests.

perldoc -q lines

How can I pull out lines between two patterns that are themselves on difâ??
ferent lines?


--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.



Relevant Pages