<?xml version="1.0" encoding="windows-1252"?>
<node id="192508" title="Can I regex &amp; grep to select contiguous lines?" created="2002-08-23 21:29:56" updated="2005-08-10 09:39:16">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
I have lines of a file in an array, each begins with a time stamp, HHMMSS, and are in increasing sequential order. How can I construct a grep &amp; regex to select all lines belonging to the 1st 5 minute interval, then the 2nd, 3rd, etc. til end-of-data in array.

Thanks!</field>
<field name="parent_node">
1835</field>
</data>
</node>
