Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Bonsai Trees

Liquid Web Managed Dedicated Server: RAID 1 SSD with 16GB of RAM minimum! 24/7 On-Site Heroic Support! Industry-Leading SLA!

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Liquid Web Cloud VPS Hosting

8,954 questions

12,356 answers

573 users

How to check if string contain only lowercase letters in VB.NET

1 Answer

0 votes
Imports System.Text.RegularExpressions

Module Module1

    Sub Main()

        Dim s1 As String = "VBNET13Java89Python"
        Console.WriteLine(Regex.IsMatch(s1, "^[a-z]*$"))

        Dim s2 As String = "!**!***!"
        Console.WriteLine(Regex.IsMatch(s2, "^[a-z]*$"))

        Dim s3 As String = "VB 13 Java 89 Python"
        Console.WriteLine(Regex.IsMatch(s3, "^[a-z]*$"))

        Dim s4 As String = "VBJavaPython"
        Console.WriteLine(Regex.IsMatch(s4, "^[a-z]*$"))

        Dim s5 As String = "vbjavapython"
        Console.WriteLine(Regex.IsMatch(s5, "^[a-z]*$"))

    End Sub

End Module


' run:
' 
' False
' False
' False
' False
' True

 




answered Oct 8 by avibootz
...