Valid Phone Number in Server SIde

Valid Phone Number in Server SIde

  

hi there,

I want to ask how to validate if the text is a valid phone number?

Thank you.

regards,

Tan

Solution

Hi Tan,

I don't think there's a definitive answer for that, since what exactly is considered to be a "valid" phone number may vary a lot. You're gonna have to come up with your own validation algorithm (for instance, how many characters are accepted, what characters are accepted, etc.) and then apply it to the input text.

Solution

hi Aurileo,

Is there a common algorithm to validate for all available phone number - home phone and mobile phone?

regards,

Tan