Skip to main content

Validate and format phone numbers using regex — Cambodia supported.

Project description

regex-number-phone

Phone number regex validator and formatter.
Cambodia validation supported.

Install

Usage

from regex_number_phone import is_valid_cambodia, format_to_international

print(is_valid_cambodia("012345678"))           # True
print(format_to_international("012345678"))     # +85512345678
print(format_to_international("+85570888888"))  # +85570888888

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

regex_number_phone-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

regex_number_phone-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file regex_number_phone-0.1.0.tar.gz.

File metadata

  • Download URL: regex_number_phone-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for regex_number_phone-0.1.0.tar.gz
Algorithm Hash digest
SHA256 64c1ea008efb3d91d3d02d75875d6e41b0950b1f1af5e03539ede59f23a8ec3d
MD5 a5774e4f61d859ee80bf71524783c921
BLAKE2b-256 dce10321109abde9e845a297548dfcaf3a677375e48708b00c7abda51cc3a3f0

See more details on using hashes here.

File details

Details for the file regex_number_phone-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for regex_number_phone-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02252923a89b8ad39ca1f357ab5700480a2f6ab75bde358233d06f8630ade271
MD5 38d5839c36ec4f8d9223ea3788f180c7
BLAKE2b-256 6131dc5999e8fd2a0783121dd4e0025bad715bee0981041cc4f0a786e9824bf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page