正则表达式可以先在VB.net 的FORM中吗?怎么写? 比如FORM中有个TEXTBOX, 可以用正则表达式校验吗? __________________________________________________________________________ SF 当然可以 __________________________________________________________________________ Private Function IsValidEmail(ByVal vstrIn As String) As Boolean Return System.Text.RegularExpressions.Regex.IsMatch(vstrIn,("^([/w-/.]+)@((/[[0-9]{1,3}/.[0-9]{1,3}/.) |(([/w-]+/.)+))([a-zA-Z]{2,4} |[0-9]{1,3})(/]?)$")) End Function __________________________________________________________________________
原文链接:https://www.f2er.com/vb/264106.html