·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> 网站建设开发 >> ASP网站建设 >> ASP正则匹配URL的正确性

ASP正则匹配URL的正确性

作者:佚名      ASP网站建设编辑:admin      更新时间:2022-07-23
Function iswww(strng)   
    iswww = false   
    Dim regEx, Match   
    Set regEx = New RegExp   
    regEx.Pattern = "^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$"  
    regEx.IgnoreCase = True  
    Set Match = regEx.Execute(strng)   
    if match.count then iswww= true   
End Function