公共统计信息
//转换为小写
str=str.toLowerCase (;
string regex=' ^ (https|http|FTP|RTSP|MMS? 3360////https、http、ftp、rtsp、mms
'? ([0-9a-z_! ~* ' (().=$%-) ) : )? [0-9a-z_! ~* ' (().=$%-) )? //ftp的user@
'() (0-9) )、3 )、)、0-9 )、1 )、3 )、/IP格式的URL-例如: 199.194.52.184
'|' //和DOMAIN (允许域名
“[0-9a-z_! ~* ' ()-(().) /域名- www。
' [0- 9a-z ] [0- 9a-z-] { 0,61 }? [0-9a-z]\.' //二级域名
' [ a-z ] { 2,6 } ) '//firstleveldomain--.com or.museum
' (3360 [0-9] { 1,5 } )? //端口号最多为65535,5、5、5位
'() ) ) (? |//aslashisn ' trequiredifthereisnofilename
'()/[0-9a-z_! ~* ' ();@=$,%#-]? $ ';
returnstr.Matches(regex );
}