PHP : couldn't replace using preg_replace()
<p>Just I'm replacing the object tag in the given string</p>

<pre><code>$matches = preg_replace("/&lt;object(.+?)&lt;/object&gt;/","replacing string",$str);
</code></pre>

<p>but it is showing the error as </p>

<pre><code>Warning: preg_replace() [function.preg-replace]: Unknown modifier 'o'
</code></pre>

<p>What went wrong?</p>
