初始化CRICS
This commit is contained in:
14
Common/ValidatePattern.cs
Normal file
14
Common/ValidatePattern.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Common
|
||||
{
|
||||
public sealed class ValidatePattern
|
||||
{
|
||||
public const string MAC = @"^([0-9a-fA-F]{2})((-[0-9a-fA-F]{2}){5})$";
|
||||
|
||||
public const string IPAddress = @"((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user