title: preg_replace an part of text start and end with PHP
body: <p>I'm trying to find a way to replace an text like this :</p>
  
  <pre><code>text here ABC -some text here- CED text here
  </code></pre>
  
  <p>to</p>
  
  <pre><code>text here ABC -replaced text- CED text here
  </code></pre>
  
  <p>or -----------------------------------</p>
  
  <pre><code>text here ABC - some description here- CED text here
  </code></pre>
  
  <p>to</p>
  
  <pre><code>text here ABC - replaced text- CED text here
  </code></pre>
  
  <p>it mean that, we will start an part of text that begin with "ABC" and end with "CED", replace all text in between them with "replaced text".
  How can I do that?
  Thanks.</p>