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] + " ";
                }
            }
        }
示例#2
0
        public bool ValidateSortCode()
        {
            RegexValid re = new RegexValid();

            return(re.MatchSortCode(SortCode));
        }