Regular Expression to Validate MAC Address
Imports System.Text.RegularExpressions
Function IsValid_MAC_Address(ByVal sMacAdd As String)
Return Regex.IsMatch(sMacAdd, "/^([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$")
End Function
The above will check for MAC Address like 22:13:35:67:49:ab etc
See Also
Extract Ref Links From WebPage using VB.Net Regular Expressions
Remove HTML Tags from String using .NET Regular Expressions
VB.NET Regular Expression to Check URL
VB.NET Regular Expression to Check Email Addresses
VB.NET Regular Expression to Check MAC Address
Regular Expression to Check Zip Code
Validate eMail Addresses using VB.NET Function
Regular Expressions in Dot Net (.NET)
No comments:
Post a Comment