以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  手机号码格式验证  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=133513)

--  作者:nxhylczh
--  发布时间:2019/4/15 16:44:00
--  手机号码格式验证
如何用正则表达式验证手机号码格式呢?
--  作者:有点甜
--  发布时间:2019/4/15 16:53:00
--  

Dim reg = new System.Text.RegularExpressions.Regex("^1[34578]\\d{9}$")
Dim Password = "13888888888"
If reg.Ismatch(Password) = False Then
    msgbox("不符合")
Else
    msgbox("符合")
End If