![]() ![]() |
|
判断字符串是否是合法的EMail | |
作者:佚名 文章来源:不详 点击数 更新时间:2008/4/18 14:44:47 文章录入:杜斌 责任编辑:杜斌 | |
|
|
Public Function IsValidEmail(strEmail As String) As Boolean If UBound(names) <> 1 Then For Each name In names If Len(name) <= 0 Then For i = 1 To Len(name) If InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 And Not IsNumeric(c) Then If Left(name, 1) = "." Or Right(name, 1) = "." Then Next If InStr(names(1), ".") <= 0 Then i = Len(names(1)) - InStrRev(names(1), ".") If i <> 2 And i <> 3 Then If InStr(strEmail, "..") > 0 Then End Function |
|
![]() ![]() |