Hi Jon,
(Arguments are not in the correct order
And just in case the OP wants to ensure that only alpha characters appear
in the entire string, excluding all white-space, numbers and symbols (but
allowing a zero-length string):
bool alphaOnly = Regex.IsMatch(@"^\p{L}*$", str);
--
Dave Sexton
Jon Shemitz said:
I want to determinate if there are alphabets in a string. (not all
number)
How can I do?
If you really want to simply find if a string has non-numeric
characters, you can do
Regex.IsMatch("[^0-9]", StringToTest);
--
.NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net
What you need to know.