RegexConstPattern.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* ==============================================================================
  2. * 功能描述:RegexPatten
  3. * 创 建 者:Garrett
  4. * 创建日期:2019/5/29 14:12:17
  5. * ==============================================================================*/
  6. using NPOI.OpenXml4Net.OPC;
  7. using System.Configuration;
  8. namespace ServiceRevitLib.Common
  9. {
  10. /// <summary>
  11. /// RegexPatten
  12. /// </summary>
  13. public static class RegexConstPattern
  14. {
  15. static RegexConstPattern()
  16. {
  17. SagaSign = ConfigurationManager.AppSettings["SagaSign"];
  18. IsMBIView = @"^([BF]\d*M?\d?|RFM?\d?)" + SagaSign + @"$";
  19. IsRF = @"^RF(" + SagaSign + ")?$";
  20. }
  21. public static readonly string SagaSign;
  22. public const string IsSpaceId = @"^Si\S*";
  23. public const string IsEquipId = @"^Eq\S*";
  24. public const string IsEquipPartId = @"^Ec\S*";
  25. public const string IsBeaconId = @"^VOBc\S*";
  26. public const string IsEquip = @"^[A-Z]{4}\s*-\s*\S*";
  27. public const string IsEquipPart = @"^[A-Z]{6}\s*-\s*\S*";
  28. public const string IsBeacon = @"^Beacon$";
  29. public const string IsMBILevel = @"^([BF][1-9]\d*M?\d?|RFM?\d?)$";
  30. public static readonly string IsMBIView;
  31. public const string IsSandwich = @"^([BF][1-9]\d*M\d?|RFM\d?)$";
  32. public static readonly string IsRF;
  33. public const string IsRFM = @"^RFM\d*$";
  34. public const string IsOnground = @"^F\s*";
  35. public const string IsUnderground = @"^B\s*";
  36. public const string IsPhoneNumber = @"^1[3|4|5|7|8][0-9]\d{8}$";
  37. }
  38. }