title: regular expression doesn't work in PHP
body: <p>I have in the database saved data previously inserted, I need to extract a fragment to replace it, but it does not work no matter what I do, the regular expression is correct because I already tried it in other programs, please I need help.</p>
  
  <p>this is the text in the database</p>
  
  <pre><code>administrator/history_p/1/&lt;?php echo base_url();?&gt;articuls/Antes
  </code></pre>
  
  <p>I need replace all before including this <code>&lt;?php echo base_url();?&gt;</code></p>
  
  <p>but the angulars <code>&lt;&gt;</code> don't want to accepted them.</p>
  
  <p>this is the regular espression</p>
  
  <pre><code>[^\s&lt;&gt;]*)&lt;(\?php echo base_url\(\);\?&gt;
  </code></pre>
  
  <p>this is the code</p>
  
  <pre><code>$regexp = preg_replace("([^\s&lt;&gt;]*)&lt;(\?php echo base_url\(\);\?&gt;)", 'HI', $field)
  </code></pre>