当前位置:编程学习 > asp >>

asp智能给内容加地址代码

asp智能给内容加地址代码

function AutoUrl(str)
 on error resume next
 Set url=new RegExp
 url.IgnoreCase =True
 url.Global=True
 url.MultiLine = True
 url.Pattern = "^(http://[A-Za-z0-9\./=\?%\-&_~`@:+!]+)"
 str = url.Replace(str,"[url=$1]$1[/url]")
 url.Pattern = "(http://[A-Za-z0-9\./=\?%\-&_~`@:+!]+)$"
 str = url.Replace(str,"[url=$1]$1[/url]")
 url.Pattern = "^(

补充:asp教程,ASP入门
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,