Developers
Test phone numbers by country: fictional ranges for developers
Fictional phone number ranges that regulators reserve in the UK, US, Canada, Australia, Germany and France, how libphonenumber treats them, and safe OTP tests.
11 min read
13 articles.
Developers
Fictional phone number ranges that regulators reserve in the UK, US, Canada, Australia, Germany and France, how libphonenumber treats them, and safe OTP tests.
11 min read
Developers
Code to validate Indian mobile numbers: what ^[6-9]\d{9}$ misses, normalising +91, 0 and 0091, and tested JavaScript, Python, PHP and C# functions.
8 min read
Guides
Chinese mobiles are +86 plus 11 digits starting with 1 (blocks 13-19), no trunk 0; landlines use area codes. Operator blocks, tested code and porting.
11 min read
Guides
Macau phone number format: +853 and 8 digits with no area codes, mobiles in the 62, 63, 65, 66 and 68 blocks, tested validation code and the Hong Kong overlap.
13 min read
Developers
No. libphonenumber checks numbering-plan metadata, not the network. What isValidNumber proves, what it can't, and how to check if a number is live.
7 min read
Developers
The phone validation ladder: syntax, numbering plan, line type and live checks, with the right library for JavaScript, Python, PHP, Go and Java.
7 min read
Developers
Validate phone numbers in Java and Kotlin with libphonenumber: Maven setup, E.164, a Spring Bean Validation constraint, Android notes and a live lookup.
7 min read
Developers
Validate phone numbers in Go with nyaruka/phonenumbers, format E.164, and call a lookup API with context timeouts, rate limiting and 429 back-off.
7 min read
Developers
To validate a phone number in Python, parse it with phonenumbers, check is_valid_number and store E.164. Exact NumberParseException errors, Pydantic and pytest.
9 min read
Developers
How to normalize phone numbers to E.164 in JavaScript and Python, the pitfalls that break deduplication, and how the MobileValidate API normalizes input.
9 min read
Developers
The common E.164 regex accepts impossible numbers. Real counterexamples, the shortest valid international numbers, and what to use a regex for instead.
7 min read
Developers
Validate phone numbers in JavaScript with libphonenumber-js: min vs max metadata, E.164, form input, and a live line-type check with runnable Node code.
9 min read
Developers
Validate phone numbers in PHP with libphonenumber-for-php, write a Laravel rule, and add a live line-type check with Guzzle that never breaks the form.
7 min read