Language:

IsAlphaNumeric()

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

Description

Funktion prüft auf alphanumerische Zeichenkette

Code

1 public static bool IsAlphaNumeric(string strToCheck) { 2 try { 3 Regex objAlphaNumericPattern=new Regex("[^a-zA-Z0-9]"); 4 return !objAlphaNumericPattern.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