/* ============================================================================== * 功能描述:RegexPatten * 创 建 者:Garrett * 创建日期:2019/5/29 14:12:17 * ==============================================================================*/ using NPOI.OpenXml4Net.OPC; using System.Configuration; namespace ServiceRevitLib.Common { /// /// RegexPatten /// public static class RegexConstPattern { static RegexConstPattern() { SagaSign = ConfigurationManager.AppSettings["SagaSign"]; IsMBIView = @"^([BF]\d*M?\d?|RFM?\d?)" + SagaSign + @"$"; IsRF = @"^RF(" + SagaSign + ")?$"; } public static readonly string SagaSign; public const string IsSpaceId = @"^Si\S*"; public const string IsEquipId = @"^Eq\S*"; public const string IsEquipPartId = @"^Ec\S*"; public const string IsBeaconId = @"^VOBc\S*"; public const string IsEquip = @"^[A-Z]{4}\s*-\s*\S*"; public const string IsEquipPart = @"^[A-Z]{6}\s*-\s*\S*"; public const string IsBeacon = @"^Beacon$"; public const string IsMBILevel = @"^([BF][1-9]\d*M?\d?|RFM?\d?)$"; public static readonly string IsMBIView; public const string IsSandwich = @"^([BF][1-9]\d*M\d?|RFM\d?)$"; public static readonly string IsRF; public const string IsRFM = @"^RFM\d*$"; public const string IsOnground = @"^F\s*"; public const string IsUnderground = @"^B\s*"; public const string IsPhoneNumber = @"^1[3|4|5|7|8][0-9]\d{8}$"; } }