[C#] 验证网址 →→→→→进入此内容的聊天室

来自 , 2019-08-12, 写在 C#, 查看 99 次.
URL http://www.code666.cn/view/9d28de8f
  1. /**////
  2. /// 验证网址
  3. ///
  4. ///
  5. ///
  6. public static bool IsUrl ( string source )
  7. {
  8.         return Regex.IsMatch ( source, @"^(((file|gopher|news|nntp|telnet|http|ftp|https|ftps|sftp)://)|(www\.))+(([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(/[a-zA-Z0-9\&%_\./-~-]*)?$", RegexOptions.IgnoreCase );
  9. }

回复 "验证网址"

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

captcha