标题:哪位大哥帮我看一下这个正则表达式是什么意思
只看楼主
wanglong202
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2005-4-22
 问题点数:0 回复次数:0 
哪位大哥帮我看一下这个正则表达式是什么意思
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 = "^(www.[A-Za-z0-9\./=\?%\-&_~`@:+!]+)" str = url.Replace(str,"[url=http://$1]$1[/url]") url.Pattern = "(www.[A-Za-z0-9\./=\?%\-&_~`@:+!]+)$" str = url.Replace(str,"[url=http://$1]$1[/url]") set url=Nothing AutoUrl=str end function
搜索更多相关主题的帖子: 正则表达式 
2005-05-12 09:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-17946-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.815009 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved