asp智能给内容加地址代码

作者:袖梨 2022-07-02

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

相关文章

精彩推荐

一聚教程网

Copyright © 2010-2022

111cn.net All Rights Reserved