Python regex to match and remove a specific pattern
<p>I have a file with the following grammar:</p>

<pre><code>&lt;whitespace_sequence&gt;&lt;string&gt;&lt;whitespace_sequence&gt;&lt;--More--&gt;&lt;whitespace_sequence&gt;&lt;string_sequence&gt;&lt;newline&gt;
</code></pre>

<p>Using Python (2.4), I would like to remove the sequence:</p>

<pre><code> "&lt;whitespace_sequence&gt;&lt;--More--&gt;&lt;whitespace_sequence&gt;" from the above grammar.
</code></pre>

<p>I am  using the following regex pattern:</p>

<pre><code>x = re.compile("(\s+)("--More--")(\s+)")
</code></pre>

<p>but it's not matching the sequence that I need to remove. </p>
