摘要: 关于验证网址的正则表达式C#://首先要引用System.Text.RegularExpressions;命名空间//然后要声明表达式的规则,这个规则适用于http,https,ftp等开头的网址形式 string s_reg = @"((http|https|ftp):(\/\/|\\\\)((\w)+[.]){1,}(net|com|cn|org|cc|tv|[0-9]{1,3})(((\/[\~]*|\\[\~]*)(\w)+)|[.](\w)+)*(((([?](\w)+){1}[=]*))*((\w)+){1}([\&](\w)+[\=](\w)+)*)*)&quo 阅读全文
posted @ 2012-12-05 11:22 一切平常心 阅读(1704) 评论(0) 推荐(0) 编辑