data extraction from complex data file using Python 2.7
<p>I have a large txt file, which contains blocks of data as follows:</p>

<pre><code>AB x u z

1  0.00 1.00 4.23

2  0.34 2.33 1.44

3  4.23 3.55 6.22

AC x u z



AB x u z

1  0.88 1.00 4.27

2  0.36 2.33 1.44

3  4.23 3.55 6.22

AC x u z



AB x u z

1  0.66 1.77 8.23

2  0.44 2.33 1.44

3  4.23 3.55 6.44

AC x u z



AB x u z

1  0.44 1.99 8.22

2  0.34 2.33 1.44

3  4.23 3.55 6.22

AC x u z
</code></pre>

<p>I am using Python 2.7 (new to this language), I simply need to extract the lines between the line "AB x u z" and "AC x u v" for, say the 3rd data block, and print these lines to another file...any help here would be greatly appreciated...</p>

<p>all the very best,
PC</p>
