84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
电话号码和分机之间用*间隔,电话号码可能有多个,电话号码和电话之间用#间隔 例子:12345678*1234#87654321*4321 我现在只写出了一个这样的/^(\d{8}(*\d{4})?#?)+$/ 有个问题是只有一个电话号码的时候,有#也不报错
上面的这个正则*之前是有\,但是显示不出来
下面已有答案
认证0级讲师
/^(\d{8})(*\d{4})?((#\d{8}(*\d{4})?)+)?$/
星号前缺少的\自己补
'*'号需要加'\',escape掉
/^(\d{8})(*\d{4})?((#\d{8}(*\d{4})?)+)?$/
星号前缺少的\自己补
'*'号需要加'\',escape掉