Esempio n. 1
0
 public EmailDetector()
 {
     detector = new RegexDetector("^\\S+@\\S+\\.\\S+$", ComponentType.Email);
 }
 public FullPostcodeDetector()
 {
     detector = new RegexDetector("^[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}$", ComponentType.PostCodeFull);
 }
Esempio n. 3
0
 public InwardPostcodeDetector()
 {
     detector = new RegexDetector("^[0-9][ABD-HJLNP-UW-Z]{2}$", ComponentType.PostcodeInward);
 }
 public IpAddressDetector()
 {
     //\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
     detector = new RegexDetector(@"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b", ComponentType.IpAddress);
 }
 public OutwardPostcodeDetector()
 {
     detector = new RegexDetector("^[A-Z]{1,2}[0-9R][0-9A-Z]?$", ComponentType.PostcodeOutward);
 }