https://github.com/ngthucdotcom/vietnam-phone-regex-pattern
https://github.com/ngthucdotcom/vietnam-phone-regex-pattern
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ngthucdotcom/vietnam-phone-regex-pattern
- Owner: ngthucdotcom
- License: mit
- Created: 2020-07-21T12:12:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-07T08:57:36.000Z (over 5 years ago)
- Last Synced: 2025-02-27T23:41:13.080Z (over 1 year ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vietnam Phone Number Regex Pattern
## Pattern
(((03)+([2-9]{1})|(05)+([2]{1}|[5-6]{1}|[8-9]{1})|(07)+([0]{1}|[6-9]{1})|(08)+([1-9]{1})|(09)+(\d{1}))+(\d{7})\b)|((02)+(\d{9})\b)|((1800|1900)+(\d{4,6})\b)
Allow:
* Telephone: /(02)+(\d{9})\b/
* Mobile phone: /((03)+([2-9]{1})|(05)+([2]{1}|[5-6]{1}|[8-9]{1})|(07)+([0]{1}|[6-9]{1})|(08)+([1-9]{1})|(09)+(\d{1}))+(\d{7})\b/
* PBX phone: /(1800|1900)+(\d{4,6})\b/
## Source
https://vi.wikipedia.org/wiki/Mã_điện_thoại_Việt_Nam
## Test
* [regexr](https://regexr.com/)