public void QuarantineURL() { string[] words = Body.Split(' '); Body = string.Empty; RegexValid re = new RegexValid(); for (int i = 0; i < words.Length; i++) { if (re.MatchURL(words[i]) == "<URL Quarantined>") { Links.Add(words[i]); } words[i] = re.MatchURL(words[i]); if (words[i] != "") { Body += words[i] + " "; } } }
public bool ValidateSortCode() { RegexValid re = new RegexValid(); return(re.MatchSortCode(SortCode)); }