正则表达式-关于字符在100以内的字

 

^.{0,100} $ 关于字符在100以内的字
 
^(\\\\(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\\([\u4e00-\u9fa5]*)(\w*))*)|([a-zA-Z]\:(\\([\u4e00-\u9fa5]*)(\w*))*)$
 
http://172.16.135.12:80123/asdf/asdfas/asdf
^http://((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5]):(\d*)(/(\w*))*)$

 

你可能感兴趣的:(正则表达式)