Update in .NET 7 (Nov 2022+)
There is a new method called Char.IsAsciiLetter
which will:
determine whether the character is in the range 'A' through 'Z', inclusive, or 'a' through 'z', inclusive.
If you want to test that a string has any english letters, you can use Linq.Any
var hasLetter = "word".Any(Char.IsAsciiLetter); // true
If you want to test that a string has only english letters, you can use Linq.All
var allLetters = "word".All(Char.IsAsciiLetter); // true
Generated Regex Source Code
.NET 7 Introduced GeneratedRegex which allows you to parse and compile regex statements at compile time, but also allows you to inspect any optimizations done under the hood. If you want to see how the regex string [a-zA-Z]
is actually implemented, you can add the following to any dotnet 7 project
public static partial class RegexExtensions
{
[GeneratedRegex("[a-zA-Z]")]
public static partial Regex HasLetter();
}
And then view source on the generated code. You'll see that even if you use regex as performantly as possible, it'll just use the exact same method on the char
class anyway under the hood:
!["[a-zA-Z]" regex source code](https://i.stack.imgur.com/VGm4x.png)
Performance Benchmarks
According to benchmark tests, the fastest way to check if a string contains an english letter is to use a for loop with Char.IsAsciiLetter
:

Polyfill
If you're not on .NET 7 yet, you can look at how the method is implemented for a performance-aware implementation:
public static bool IsAsciiLetter(char c) => (uint)((c | 0x20) - 'a') <= 'z' - 'a';
a-zA-Z
you can use?i
to make your regex pattern case insensitive and then just writea-z
where ever required.