phone_pattern = {
'ar-DZ': "^(+?213|0)(5|6|7)\d{8}",
'ar-SA': "^(!?(+?966)|0)?5\d{8}",
'cs-CZ': "^(+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}",
'da-DK': "^(+?45)?(\d{8})",
'en-AU': "^(+?61|0)4\d{8}",
'en-HK': "^(+?852-?)?[569]\d{3}-?\d{4}",
'en-NZ': "^(+?64|0)2\d{7,9}",
'en-ZM': "^(+?26)?09[567]\d{7}",
'fi-FI': "^(+?358|0)\s?(4(0|1|2|4|5)?|50)\s?(\d\s?){4,8}\d",
'he-IL': "^(+972|0)([23489]|5[0248]|77)[1-9]\d{6}",
'hu-HU': "^(+?36)(20|30|70)\d{7}",
'ja-JP': "^(+?81|0)\d{1,4}[ -]?\d{1,4}[ -]?\d{4}",
'nb-NO': "^(+?47)?[49]\d{7}",
'nn-NO': "^(+?47)?[49]\d{7}",
'pt-BR': "^(+?55|0)-?[1-9]{2}-?[2-9]{1}\d{3,4}-?\d{4}",
'ru-RU': "^(+?7|8)?9\d{9}",
'tr-TR': "^(+?90|0)?5\d{9}",
'zh-CN': "^(+?0?86-?)?1[345789]\d{9}"
}
网友评论