2.33.11.IsMatch(String) determines whether a string is a valid to Regular expression
Imports System.Text.RegularExpressions
Module Example Public Sub Main() Dim rgx As New Regex("^[a-zA-Z0-9]\d{2}[a-zA-Z0-9](-\d{3}){2}[A-Za-z0-9]$")
Console.WriteLine(rgx.IsMatch("1298-673-4192"))