var cookstr = '|<IMG src="img/mail_sina.gif">@sina.com (新浪)|<IMG src="img/mail_gmail.gif">@gmail.com (谷歌)|';
var mpictitle='<IMG src="img/mail_sina.gif">@sina.com (新浪)';
reg1str = mpictitle;
reg1str = reg1str.replace(/([\)\(\/\.\-\[\]])/ig,"\\$1");
var reg1=new RegExp(reg1str,'ig');
cc=cookstr.replace(reg1,'aaaaaaaaaaaaa');
//alert(cc);