Need regex to extract only alphabets from string

c#, extract, regex

Solution

Here an agnostic language regex solution :

/[a-z]+/i

C# code :

public Regex MyRegex = new Regex( "[a-z]+", RegexOptions.IgnoreCase);

Problem

Hi I have string like `A01`, `AAA`, etc. I want to extract out the alphabet part of it like for `A01` => `A`, `AAA` => `AAA`. I am using `[A-Za-z\s]` but it does not work. It however works when I try online at http://gskinner.com/RegExr/ What is missing?

Original source