-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以考虑加一下固话的正则 #34
Comments
格式: 0XX-XXX-XXXX 要求可能符合格式(允许 0XX-XXXX-XXXX 这种无效号码): 要求必须符合格式: 要求必须符合格式,并且符合真实的号码规则(符合参考资料中的所有已放出号段,不包括废弃号段,严格匹配 7 位或者 8 位号码。): 7 位号段010 020 021 022 023 024 025 027 028 029 0312 0313 0314 0315 0316 0317 0318 0319 0310 0335 0349 0351 0352 0353 0354 0355 0356 0357 0358 0359 0350 0372 0373 0374 0375 0376 0370 0391 0392 0393 0394 0395 0396 0398 0412 0415 0416 0417 0418 0419 0421 0427 0429 0433 0434 0435 0436 0437 0438 0439 0452 0453 0454 0455 0456 0457 0458 0459 0464 0467 0468 0469 0471 0472 0473 0474 0475 0476 0477 0478 0479 0470 0482 0483 0533 0534 0535 0536 0537 0538 0539 0530 0543 0546 0552 0553 0554 0555 0556 0557 0558 0559 0550 0561 0562 0563 0564 0566 0572 0578 0570 0580 0592 0593 0594 0596 0597 0598 0599 0631 0632 0633 0635 0660 0662 0663 0668 0691 0692 0711 0712 0713 0714 0715 0716 0717 0718 0719 0710 0722 0724 0728 0734 0735 0736 0737 0738 0739 0730 0743 0744 0745 0746 0750 0751 0752 0753 0756 0758 0759 0760 0762 0763 0766 0768 0771 0772 0773 0774 0775 0776 0777 0778 0779 0770 0792 0793 0794 0795 0796 0797 0798 0799 0790 0701 0812 0813 0816 0817 0818 0825 0826 0827 0831 0832 0833 0834 0835 0836 0837 0838 0839 0830 0854 0855 0856 0857 0858 0859 0872 0873 0874 0875 0876 0877 0878 0879 0870 0883 0886 0887 0888 0891 0892 0893 0894 0895 0896 0897 0911 0912 0913 0914 0915 0916 0917 0919 0931 0932 0933 0934 0935 0936 0937 0938 0939 0930 0941 0943 0951 0952 0953 0954 0955 0971 0972 0973 0974 0975 0976 0977 0979 0970 0991 0992 0993 0994 0995 0996 0997 0998 0999 0990 0901 0902 0903 0906 0908 0909 content!!!8 位号段0311 0371 0377 0379 0411 0431 0432 0451 0511 0512 0513 0514 0515 0516 0517 0518 0519 0510 0523 0527 0531 0532 0551 0571 0573 0574 0575 0576 0577 0579 0591 0595 0731 0754 0755 0757 0769 0791 0851 0871 0898 content!!!简单的测试数据7位 XXX-XXXXXXXX010-1234567 7位 XXXX-XXXXXXX0312-1234567 8位 XXXX-XXXXXXXX0311-12345678 不匹配010-12345678 0312-12345678 0311-1234567 我只是简单写了一下,正则还可以找规律继续优化。 参考资料:中国大陆电话区号 |
请问 110 119 固话是啥 |
@ultravires 这种固定的直接字符串匹配就好了吧... 正则的话类似 |
可以考虑加一下固话的正则
The text was updated successfully, but these errors were encountered: