[C#] C#检查字符串是否是合法的HTTP URL地址 →→→→→进入此内容的聊天室

来自 , 2019-07-27, 写在 C#, 查看 97 次.
URL http://www.code666.cn/view/e0eacd98
  1. protected string HTTPChecker(string Value) {
  2.  
  3.         if ((Value.Substring(0, 7) != "http://") && (Value.Substring(0, 8) != "https://") )
  4.         {
  5.                 Value = "http://" + Value;
  6.         }
  7.  
  8.         return Value;
  9. }  //END HTTPChecker
  10. //csharp/5396

回复 "C#检查字符串是否是合法的HTTP URL地址"

这儿你可以回复上面这条便签

captcha