Developers
How to validate Indian mobile numbers in code
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
2 articles.
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
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