hi freinds, how to validate phone and mobile number in .net if anybody know , please answer.......
Javascript also supports RegExp (regular expressions). I would suggest using Expresso s phone number regexp examples as a base. They have thought about lots of things like area codes in brackets, spaces or dashes between groups of digits, etc. You will need to think about what you want to support: your local conventions / rules for numbers domestic area codes international numbers and dialling prefix and so on. var pattern = /^\(\d{3}\)\s*\d{3}(?:-|\s*)\d{4}$/ if (pattern.test(string)) { // string looks like a good (US) phone number with optional area code, space or dash in the middle }