Last post Feb 12, 2018 11:36 PM by afastars
Feb 10, 2018 01:36 AM|afastars|LINK
i'm using the code below to detect number in string but i also want to detect capital letter in string what is the regular expression for that...?
I've google and tried many but no luck so far. Need help from expert here. Thanks.
If isAllLetters = Regex.IsMatch(StringSetCheck, "^[a-zA-Z]+$") Then
Feb 12, 2018 06:54 AM|Angie xu - MSFT|LINK
Please try regex below:
Feb 12, 2018 11:36 PM|afastars|LINK
hi Angie xu - M, Thanks for replied
you post give me idea, instead of detect number and capital letter, i'm detect only small letter the expression supposed to be ^[a-z]+$, this will reject others n only accept small letter.
To detect@reject capital letter the expression should be ^[A-Z]+$