961(71|72|76|79|3)\d{6}
Dim validate As New Regex("961(71|72|76|79|3)\d{6}") Dim inp As String = "96171648262" If validate.Match(inp).Success Then ... End If
Public Function ValidatePhone(sPhone As String) As Boolean Dim sReg As New System.Text.RegularExpressions.Regex("961(71|72|76|79|3)\d{6}") If sReg.IsMatch(sPhone) Then Return True Else Return False End If End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)