title: PHP Regex : Replace substring between two special character
body: <p>Updating the Question:</p>
  
  <pre><code>$li_text = $li-&gt;plaintext;
  echo '&lt;br&gt;'.$li_text;
  echo '&lt;br&gt;'.$li_text = preg_replace('/\:(.*?)\&gt;/',':', $li_text);
  </code></pre>
  
  <p><code>$li</code> getting the Value "Qualification : School &amp; Graduation > BE / B.Tech ( Engineering ) " <code>//by using simple html DOM parsing from other websites</code></p>
  
  <p>The output i am getting is </p>
  
  <pre><code>Qualification : School &amp; Graduation &gt; BE / B.Tech ( Engineering )
  Qualification : School &amp; Graduation &gt; BE / B.Tech ( Engineering ) 
  </code></pre>
  
  <p>If i assign <code>$li_text = "Qualification : School &amp; Graduation &gt; BE / B.Tech ( Engineering )"</code> then the REGEX is working fine.</p>