如何用正则表达式提取下列内容 把它替换成:<BODY bgcolor="#FFFFFF" text="#000000"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>var str = '<BODY bgcolor="#FFFFFF" text="#000000" onmouseup="if(document.all) document.selection.empty()" oncontextmenu="return false" onmousemove="if(document.all) document.selection.empty()" oncopy="if(document.all) document.selection.empty()" onselect="if(document.all) document.selection.empty()">';var nstr = str.replace(/^<body.+(bgcolor=\".+?\").*(text=\".+?\").*>$/i,'<body $1 $2>');alert(nstr);</script> jquery datatable复合表头的插件的用法 extjs下页面元素如何重新加载 获取鼠标位置所在的控件 急急急急,求高人 关于div的背景图片的问题 一个关于二级菜单文字换图片不能自动跳的问题,请高手指点,急! 给js对象添加属性疑惑? 关于对时间取月(getMonth),取年(getYear)的问题!!???在线等!!! 如何实现自动换行? 本人女生,想在西安找web前端的工作,各路大神给给意见吧 这个正则表达式好奇怪啊!!!!!!!!!! 如何按秒倒计时?(在线等待,10分钟内结贴)
var str = '<BODY bgcolor="#FFFFFF" text="#000000" onmouseup="if(document.all) document.selection.empty()" oncontextmenu="return false" onmousemove="if(document.all) document.selection.empty()" oncopy="if(document.all) document.selection.empty()" onselect="if(document.all) document.selection.empty()">';var nstr = str.replace(/^<body.+(bgcolor=\".+?\").*(text=\".+?\").*>$/i,'<body $1 $2>');
alert(nstr);
</script>