Language:

IsSimpleFaxNumber()

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

Description

Funktion prüft auf Faxnummer: 0-9 inkl. +

Code

1 public static bool IsSimpleFaxNumber(string strFax) { 2 try { 3 Regex objNotWholePattern=new Regex("\\+?\\d+"); 4 return objNotWholePattern.IsMatch(strFax); 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