龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

asp智能给内容加地址代码

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:

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 = "^(

精彩图集

赞助商链接