Software Development Network>> Visual C#>> part of the alphabet
You may be able to use regular expressions. Check this out:
http://msdn2.microsoft.com/en-us/library/20bw873z.aspx
Hi,
by regular expression,
Hope this helps.
a bit longer, but probably faster method is:
foreach(Char c in str) if (!Char.IsLetter(c)) return false;return true;
part of the alphabet
PublicError
erick_the_redd
Armela
You may be able to use regular expressions. Check this out:
http://msdn2.microsoft.com/en-us/library/20bw873z.aspx
andreyr123
quiklearner
Hi,
by regular expression,
Regex re = new Regex(@"^[a-zA-Z]*$");
if (re.IsMatch("Hello"))
{
// do something
}
Hope this helps.
Jabber
a bit longer, but probably faster method is:
foreach(Char c in str)
if (!Char.IsLetter(c))
return false;
return true;