What I am trying to do if find out if my string start is between two letters in the alphabet
What I want is something like
mystring.StartsWith("a") but not greater that mystring.StartsWith("au")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s fairly simple:
That will include “atzzzz” but not “au” itself. Adjust bounds as required – and likewise choose a different
StringComparerif necessary (e.g. a case-insensitive or culture-sensitive one).