Forum

Banshee 4.2, valid_phonenumber

Heiko
20 August 2014, 18:55
Hello,

I want to create an new website with Banshee.

In /libraries/security.php is a function: valid_phonenumber

return preg_match("/^(\+31|0)([0-9]{9}|6-?[0-9]{8}|[0-9]{2}-?[0-9]{7}|[0-9]{3}-?[0-9]{6})$/", $phonenr) === 1;


This is the Netherland format.
What is a fine preg_match for an international format?

Is there anybody with a good idea?

Thanks
Heiko


Hiawatha version: 9.7 beta
Operating System: OpenBSD 5.6 current
Hugo Leisink
21 August 2014, 19:19
I'm not aware of any international telephone number format...
This topic has been closed.