使用oracle提供的regexp_substr()函数,对将IPV4地址分成4段: select v.ip as ip_address, regexp_substr(v.ip,,) as A, regexp_substr(v.ip,,) as B, regexp_substr(v.ip,,) as C, regexp_substr(v.ip,,) as D from (select '192.168.253.183' as ip from dual) v 结果如下: -------------
var chenkPhone=/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/var username=$("#username").val();if (!username.match(chenkPhone)){ showMessage('danger',"请输入正确的手机号码");}
func isTelNumber(num:NSString)->Bool { var mobile = "^1(3[0-9]|5[0-35-9]|8[025-9])\\d{8}$" var CM = "^1(34[0-8]|(3[5-9]|5[017-9]|8[278])\\d)\\d{7}$" var CU = "^1(3[0-2]|5[256]|8[56])\\d{8}$" var CT = "^1((33|53|8[09])