⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tool11.htm

📁 本软件为绿色软件
💻 HTM
字号:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src=inc/5top.js></script></head>
<body scroll=yes><br>
<table width=99% height="90%" border="1" cellpadding=4 cellspacing=0>
<tr>
<td height="26">查找什么:<input name="sdf3" type="text" id="sdf3"> 支持正则表达式
<input type=checkbox name=sdf3>区分大小写<br>
替 换 为:<input name="sdf3" type="text" id="sdf3">
<input type=button onclick="asdf()" value=" 确 定 ">
<br>
例子<table border=1 cellpadding=4 cellspacing=0 bordercolor=#111111>
<tr onmouseover=this.bgColor="#cccccc" onmouseout=this.bgColor="" onclick=se3(0)>
	<td>替换尾空格</td>
	<td id=tt5>\s+$</td>
	<td id=tt5></td>
</tr>
<tr onmouseover=this.bgColor="#cccccc" onmouseout=this.bgColor="" onclick=se3(1)>
	<td>替换首尾空格</td>
	<td id=tt5>(^\s+)|\s+$</td>
	<td id=tt5></td>
</tr>
<tr onmouseover=this.bgColor="#cccccc" onmouseout=this.bgColor="" onclick=se3(2)>
	<td>替换每行尾部空格</td>
	<td id=tt5>[ \t ]+\r\n</td>
	<td id=tt5>\r\n</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><textarea name="af2" id="af2" style="width:100%;height:100%"></textarea></td>
</tr>
<tr>
<td height=26><input type=button onclick="cp3(af2)" value=" 复 制 ">

</td>
</tr>
</table>
<script>


function asdf()
{
t=""
a=sdf3[0].value
b=sdf3[2].value
t="af2.value=af2.value.replace(/"+a+"/g"
if(!sdf3[1].checked)t+="i"

t+=",\""+b.replace(/\"/g,"\\\"")+"\")"

try
{
eval(t)
}
catch(ts)
{
M("语法有错!")
}

}

function se3(n)
{
sdf3[0].value=tt5[n*2].outerText
sdf3[2].value=tt5[n*2+1].outerText
}


function cp3(n)
{
var a=n.value
if(a=="")return
n.select()
document.execCommand('Copy')
}

</script><script src=inc/5down.js></script></body></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -