I want to replace object tag containing string in javascript with spaces.
var tmpSearchPhrase ='<object data="data:text/html;
base64,PHNjcmlkb21haW4pOzwvc2NyaXB0Pg=="></object>';
tmpSearchPhrase.replace(/<object .*>.*<\/object>/,"");
But it is not replacing object.