RerexExpression.cs 441 B

123456789101112
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace DllEapCommon.Regex
  5. {
  6. public class RegexExpression
  7. {
  8. public static string MacAddressExp = "^[A-F0-9]{2}([-:]?[A-F0-9]{2})([-:.]?[A-F0-9]{2})([-:]?[A-F0-9]{2})([-:.]?[A-F0-9]{2})([-:]?[A-F0-9]{2})$";
  9. public static string IpAddressExp = @"^((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)))$";
  10. }
  11. }