Hi all ..
I'm quite new to Regex'es, so I was wondering if this is possible?
Take a string and check that all characters are A-Z or a-z.
My best guess so far is:
"^[A-Za-z]*$"
But it seems to have some trouble if a character in the middle of the string is not a valid character (fx. "aaa__aa"). The Regex.IsMatch
returns true.. :(
[EDIT] A few comments on your answer rather than only a regex would be great :)