RegexConstPattern.cs 1.3 KB

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