欢迎来到福编程网,本站提供各种互联网专业知识!

得到连接和图片的地址 正则

发布时间:2006-08-23 作者: 来源:转载
复制代码代码如下:functionAddSiteURL(ByValStr)IfIsNull(Str)ThenAddSiteURL=""ExitFunctionEndIfDimreSetre=newRegExpWithre.IgnoreCase=True.Global=True.Pattern="
复制代码 代码如下:
functionAddSiteURL(ByValStr)
IfIsNull(Str)Then
AddSiteURL=""
ExitFunction
EndIf

Dimre
Setre=newRegExp
Withre
.IgnoreCase=True
.Global=True

.Pattern="str=.replace(str,"

.Pattern="str=.replace(str,"EndWith
Setre=Nothing

AddSiteURL=Str
EndFunction

相关推荐