PHP How to find a line begining with a word from a text file
<p>I have a text file with following lines</p>

<blockquote>
  <p>Manifest-Version: 1.0<br>
  MIDlet-Vendor: Croco Gamez<br>
  MIDlet-Version: 1.0.0<br>
  MIDlet-1: Quan, /icon.png, CGTQ<br>
  MicroEdition-Configuration: CLDC-1.0<br>
  Created-By: 1.4.2 (Sun Microsystems Inc.)<br>
  MIDlet-Icon: /icon.png<br>
  MIDlet-Name: Quan<br>
  MicroEdition-Profile: MIDP-2.0</p>
</blockquote>

<p>I want to find the line start with <code>MIDlet-1</code> and Remove paragraph from end of this line
Please help me</p>
