Language:

IsAlpha()

Language: Deutsch
Programming Language: C#
Published by: Thomas
Last Update: 5/4/2006
Views: 1025

Description

Function To test for Alphabets.

Code

1 public static bool IsAlpha(string strToCheck) { 2 try { 3 Regex objAlphaPattern=new Regex("[^a-zA-Z]"); 4 return !objAlphaPattern.IsMatch(strToCheck); 5 } 6 catch { 7 return false; 8 } 9 } 10

No comments avaiable

Add a comment

Name *  

Email (won't be displayed) *    

Website  

Comment *  

Sicherheitscode Security Code *    

RSS