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);

Posted on 2010-01-27 09:04  古代  阅读(302)  评论(0编辑  收藏  举报