title: Want to replace Object tag in string by javascript
body: <p>I want to replace object tag containing string in javascript with spaces.</p>
  
  <pre><code>var tmpSearchPhrase ='&lt;object data="data:text/html;
  base64,PHNjcmlkb21haW4pOzwvc2NyaXB0Pg=="&gt;&lt;/object&gt;';
  tmpSearchPhrase.replace(/&lt;object .*&gt;.*&lt;\/object&gt;/,"");   
  </code></pre>
  
  <p>But it is not replacing object.</p>