版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。
Malaysia Phone format
"^((\\+60(\\s|-)?)|0)(((?!0)(?!2)(?!80)(?!81)\\d{1,2})[1]?)(\\s|-)?\\d{2,4}(\\s|-)?\\d{4}$"
all landline + mobile + IP in these format:
0XY YYXX XXXX or +60 XY YYXX XXXX
X must be there,Y may or not may be there depend on which number
example:
012 345 6789 or +60 12 345 6789 (normal mobile)
03 1234 5678 or +60 1234 5678 (selangor fix line)
088 12 3456 or +60 88 12 3456 (sabah fix line)
0111 123 4567 or +60 111 123 4567 (new mobile format)
space does not matter (accept without space too) or can be replace with dash (-)
do not accept bracket (common style to let people kNow the number can be omitted for local or STD call)
do not accept number to singapore (02),brunei (080) or any other unused NDC
do not accept NSN without trunk prefix (you don’t give people 12-345 6789)
do not accept country code + NSN without international call prefix too. it will confused people to give full number with country code without the plus sign.
do not accept input from stupid people who do not kNow the different between country code and trunk prefix (+6 03 1234 5678)
do not accept input from stupid people who try to separate subscribe number wrongly (+6011 123 456)
Singapure Phone format
"^[689]\\d{3}(\\s)?\\d{4}$"