How to validate the phone number ?

Hi,
I want to validate the phone number(landline or mobile) using a regular expression.
Phone number should be global (like used all over the world).
It may contain special characters(Optional) like “hypen”(-), or “Paranthesis”().
Ex: 086-104-2222
or (086)-104-2222
or 0861042222 (US)

or 9999999999 (Mobile)

or 08026693647 (India)

Can i get these done in a single expression
If anyone have any idea regarding this please help me…

use following regular expression

[php] /^(?(\d{3}))?[- ]?(\d{3})[- ]?(\d{4})$/ [/php]

SANJAY

Sponsor our Newsletter | Privacy Policy | Terms of Service