IsPhoneFax
<Extension()> _ Public Function IsPhoneFax(ByVal value As String) As Boolean Dim reg As Regex = New Regex("^[2-9]\d{2}-\d{3}-\d{4}$") Return reg.IsMatch(value) End FunctionExample:
Textbox1.Text.IsPhoneFax
Description
Check string that contains valid Phone / Fax
Details
- Author: NetDorkie
- Submitted on: 16-7-2009 15:27:45
- Language: VB
- Type: System.String
- Views: 2255
Double click on the code to select all.