使用C#实现DHT磁力搜索的BT种子后端管理程序+数据库设计(开源

2020-01-06 13:10:34王冬梅
  •     string res = title;  
  •     try  
  •     {  
  •         //string pattern = @"[(.*)([w-]+://?|(www|bbs)[.])([^]]*)]";  
  •         string pattern = @"([|@|【|s|(|{)(.*)([w-]+://?|(www|bbs)[.])([^(]|@|】|)|})]*)(]|@|】|)|})";  
  •         Match usermatch = Regex.Match(title, pattern, RegexOptions.IgnoreCase);  
  •         if (usermatch.Groups.Count > 1)  
  •         {  
  •             res = res.Replace(usermatch.Groups[0].Value.ToString(), " ");