Imports System.Text.RegularExpressions
Sub showMatch(ByVal text As String, ByVal expr As String)
Console.WriteLine("The Expression: " + expr)
Dim mc As MatchCollection = Regex.Matches(text, expr)
Dim str As String = "10196030860153"
showMatch(str, "(^50[0-9]{10}$)|(^10[0-9]{12}$)|(^87[0-9]{9}$)")