论坛转贴工具中用到的正则表达式学习正则的好例子
软件发布|下载排行|最新软件
]*?>/ig,"\n\n"); str = str.replace(/<[^>]*?>/g,""); str = str.replace(/\[url=([^\]]+)\]\n(\[img\]\1\[\/img\])\n\[\/url\]/g,"$2"); str = str.replace(/\n+/g,"\n"); return str; } function copycode(obj){ obj.select(); objcopy=obj.createTextRange(); objcopy.execCommand("Copy"); } function trans(){ var str = ""; rtf.focus(); rtf.document.body.innerHTML = ""; rtf.document.execCommand("paste"); str = rtf.document.body.innerHTML; if(str.length == 0) { alert("剪贴版不存在超文本数据!"); return ""; } return html_trans(str); } function preview(){ var prewin=window.open("","",""); prewin.document.write(rtf.document.body.innerHTML); } function zhen(str) { strfound=str.replace(/\\/ig,"\\\\"); strfound=strfound.replace(/\[/ig,"\\["); strfound=strfound.replace(/\]/ig,"\\]"); strfound=strfound.replace(/\{/ig,"\\{"); strfound=strfound.replace(/\}/ig,"\\}"); strfound=strfound.replace(/\|/ig,"\\|"); strfound=strfound.replace(/\//ig,"\\/"); strfound=strfound.replace(/\^/ig,"\\^"); strfound=strfound.replace(/\./ig,"\\."); strfound=strfound.replace(/\*/ig,"\\*"); strfound=strfound.replace(/\?/ig,"\\?"); strfound=strfound.replace(/\+/ig,"\\+"); return strfound; } function replace_star() { var str=document.getElementById('text').value; if(!reg.checked) strfound=zhen(find_text.value); else strfound=find_text.value; var re = new RegExp(strfound,"ig"); str=str.replace(re,replace_text.value); document.getElementById('text').value=str; } </script>
电脑教程吧 » 转贴工具 电脑教程吧论坛转贴工具
电脑教程吧论坛转贴工具
转贴工具使用说明
1,选中你想要转贴的内容,按 Ctrl + C 将其复制
2,回到这个页面,直接点"转换剪切板数据"按钮
3,代码转化好了,点"将代码复制到剪切板"按钮
4,回到论坛发帖页面,按 Ctrl + V将代码粘贴进去
5,将你要发的帖子再编辑一下,就可以顺利发帖了
本转帖工具对于其他论坛同样有帮助,如果你觉得这个工具很有帮助,可以将本页添加到收藏页。
电脑教程吧论坛欢迎你光临:http://www.pcjc8.com 电脑教程吧论坛
R语言安装辑程包不存在 解决R语言安装时出现辑程包不存在的问题
Permission denied解决方法 Permission denied的解决办法
VSCode配置python环境
使用axios发送post请求
使用@Cacheable设置缓存的过期时间
uniapp地图组件(map)使用
axios配置请求头content-type
如何在SPSS软件中绘制饼图
Copyright 2022 版权所有 软件发布 访问手机版
声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们