delete only lines after match1 up to match2
<p>I have checked and played with various examples and it appears that my problem is a bit more complex than what I have been able to find. What I need to do is search for a particular string and then delete the following line and keep deleting lines until another string is found. So an example would be the following:</p>

<pre><code>a
b
color [
0 0 0,
1 1 1,
3 3 3,
] #color
y
z
</code></pre>

<p>Here, <code>"color ["</code> is match1, and <code>"] #color"</code> is match2. So then what is desired is the following:</p>

<pre><code>a
b
color [
] #color
y
z
</code></pre>
