using System; using System.Text.RegularExpressions;
public static bool IsTypeAId(string Value) { bool blnIs = false; blnIs = Regex.IsMatch(Value, "^[0-9][0-9][0-9][0-9][0-9][0-9]$", RegexOptions.IgnoreCase); return blnIs; }
public static bool IsTypeBId(string Value) { bool blnIs = false; blnIs = Regex.IsMatch(Value, "^[A-Z][A-Z][0-9][0-9][0-9][0-9]$", RegexOptions.IgnoreCase); return blnIs; }
Build Your Own ASP.NET Website Using C# & VB.NET