PHP Find and replace a part of string with regex : <p>I want to find and replace a part of string start and end with.
Example:</p>

<pre><code>&lt;LAT&gt;43.654209136963&lt;/LATS&gt;
&lt;LONGS&gt;-0.59365832805634&lt;/LONGS&gt;
&lt;LAT&gt;44.362339019775&lt;/LATE&gt;
</code></pre>

<p>Become:</p>

<pre><code>&lt;LATS&gt;43.654209136963&lt;/LATS&gt;
&lt;LONGS&gt;-0.59365832805634&lt;/LONGS&gt;
&lt;LATE&gt;44.362339019775&lt;/LATE&gt;

-Line1: &lt;LAT&gt; =&gt; &lt;LATS&gt;
-Line3: &lt;LAT&gt; =&gt; &lt;LATE&gt;
</code></pre>

<p>Thanks for your helo</p>
