str.replace(/<form name=\"searchForm\" method=\"post\" action=\"JavaScript:checkInput()\"/[\s|\S]*?</form>/gi,"">
解决方案 »
- var Sh=["AAA","BBB"];我现在想改变Sh其中的值,如何赋值给Sh,请高人指点,谢谢
- ext gridpanel排序
- mooTools小练习,绷紧你的视觉神经。
- 求中文进行gb2312url编码的函数
- 内容多想弄个下拉条 多帮忙
- 自定义提示框 ie6 与 ie7 的兼容性问题
- 如何用JAVASCRIPT脚本读取一个htm文件的全部内容,并赋给当前文件中的变量?
- 推荐一个可以在浏览器中使用Office的控件
- 请帮忙
- 页面无法获得node.js GET返回数据
- document.getElementById(id)找不到对象是怎么回事?
- 如何复制一个数组?原来的数组改动不影响复制的那个数组
var ss = 'dasdas31231<form action="JavaScript:checkInput()" method="post" name="searchForm"> 内容长度不定</form>afdfw4123';
var re = /(<form action="JavaScript:checkInput\(\)" method="post" name="searchForm">(\s\S*)<\/form>)/;
var rv = ss.replace(re,"");
alert(rv);
</script>
var str = 'aaa<form name="searchForm" method="post" action="JavaScript:checkInput()">内<asiwasoa><html><td>/edwdsa定</form>cccc';
str=str.replace(/<form name=\"searchForm\" method=\"post\" action=\"JavaScript:checkInput\(\)\"[\s\S]*?<\/form>/gi,"");
alert(str);
</script>