Converting HTML Entities Into Character Code Equivalents Replacing Placeholder Variables Using Regular Expressions
International Mobile Number Validation
1 Nov2007
UPDATE August 19, 2008 11:22 GMT+11: This article has been superceded by an update with more permanent URLs: International Mobile Number Validation PT II
Validating mobile phone numbers in international format isn't all that easy. Numbering plans are disparate and constantly changing.
I've come up with a parseable file format which is published here:
http://www.workingsoftware.com.au/mobile_numbering.txt (ed: This link is broken, an updated link is available in the follow up post International Mobile Number Validation PT II)
I've written a class file in PHP (5 only) that reads this file and allows you to validate a number:
http://www.workingsoftware.com.au/mobile_validation.class.php.txt (ed: This link is broken, an updated link is available in the follow up post International Mobile Number Validation PT II)
There's documentation at the top of both those pages I won't bother repeating here.
I think the only way we can make this work is to have it collaboratively maintained. I've proposed that the project be hosted at http://www.kannel.org.
Please feel free to contact me or subscribe to users@kannel.org if you would like to discuss this further. Together, we can validate!
This entry was posted on Thursday, November 1st, 2007 at 3:20 pm author iain dooley, sms, mobile, mobiles
Subscribe
Building software in the real world - the Working Software blog
We write about our experiences, ideas and interests in business, software and the business of software. We also sometimes write about our own products (in order to promote them).
Recent Posts
- RSS is only dead if we let it die
- Kill your index.php
- 18 Things I Wish I Knew 7 Years Ago
- When does automation become coding
- A list of things you can do to afford Mixergy Premium in 2012
- Thanks Louis now here is my dad
- Your templating engine sucks and everything you have ever written is spaghetti code yes you
- Energy for Opportunity website is now live
- Escaping single and double quotes in XPath queries in PHP
- The reason that outsourcing software is so difficult