Suppose we have a string like A.K. Ramaswamy
And we want to write the regular expression for the same. The below will do so
Imports System.Text.RegularExpressions
Namespace ConsoleApplication1
Class Program
Private Shared Sub Main(args As String())
Dim input = "A.K. Ramaswamy"
Dim rgx As New Regex("^[a-zA-Z. ]*$")
Console.WriteLine(rgx.IsMatch(input))
Console.ReadKey()
End Sub
End Class
End Namespace