最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
以前收集的一些资料---转换文本为超联和Email格式的代码
时间:2022-06-30 11:37:54 编辑:袖梨 来源:一聚教程网
如果用户输入了http://aaa.**bb*b.ccc
下面这个代码将把他的输入转换成http://aaa.**bb*b.ccc
大家看看正则表达式有多厉害,呵呵。
'调用这个函数来显示成超联结
Response.Write to_html(s_message)
%>
Function to_html(s_string)
to_html = Replace(s_string, """", """)
to_html = Replace(to_html, " to_html = Replace(to_html, ">", ">")
to_html = Replace(to_html, vbcrlf, "
")
to_html = Replace(to_html, "/ to_html = Replace(to_html, "/>", ">")
to_html = edit_hrefs(to_html)
End Function
%>
下面这个代码将把他的输入转换成http://aaa.**bb*b.ccc
大家看看正则表达式有多厉害,呵呵。
'调用这个函数来显示成超联结
Response.Write to_html(s_message)
%>
Function to_html(s_string)
to_html = Replace(s_string, """", """)
to_html = Replace(to_html, " to_html = Replace(to_html, ">", ">")
to_html = Replace(to_html, vbcrlf, "
")
to_html = Replace(to_html, "/ to_html = Replace(to_html, "/>", ">")
to_html = edit_hrefs(to_html)
End Function
%>
相关文章
- 风启之旅前期火药获取位置介绍说明 04-17
- 一耽漫画下载官方正版安装包-一耽漫画app免费下载最新版本在线观看 04-17
- 《Garden in》白金撒花成就解锁指南 04-17
- 前往中世纪房间是什么 04-17
- poki地铁跑酷畅玩入口-poki地铁跑酷经典入口 04-17
- 原神月之六版本卡池有哪些 04-17