0

Hi please help me how to do validations for phone number in c# and the phone numbers must allow only country code followed by mobile Number

Backs
  • 24,430
  • 5
  • 58
  • 85
Indrakumar S
  • 21
  • 1
  • 3
  • Please add relevant information to your question like what you tried so far with code. Please refer to http://stackoverflow.com/help/how-to-ask for further orientation. – h7r Aug 01 '15 at 08:03

1 Answers1

2

Please refer to this Post

regex for phone number

/\(?([0-9]{3})\)?([ .-]?)([0-9]{3})\2([0-9]{4})/
(123) 456 7899
(123).456.7899
(123)-456-7899
123-456-7899
123 456 7899
1234567899
are supported
Community
  • 1
  • 1
Gene
  • 41
  • 3