I am trying to detect whether my string contains the alphabets (a-z & A-Z), and I obtained my answer from this post. But not all string works as expected, take 8+a as an example:
string expression = "8+a";
if (Regex.IsMatch(expression, @"^[a-zA-Z]+$") == true)
true;
else
false;
This returns false which suppose to be true. How do I make this return true. Thanks!