C# Regular Expression to validate phone numberISIndra Kumar S11yAsked Aug 1, 2015, 5:06 AM41.3kVisual Basic .NETHi 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
Rajeesh Menoth11y agoPosted Aug 1, 2015, 7:45 AMHi, ref the following examples: 1) http://www.c-sharpcorner.com/UploadFile/ee01e6/important-list-of-regular-expressions-and-its-uses/ 2) http://www.authorcode.com/how-to-use-regular-expression-for-validating-phone-numbers-in-net/ 3) http://www.codeproject.com/Questions/709095/Validate-a-phone-Number-by-country-code
Vipan Sharma11y agoPosted Aug 1, 2015, 5:33 AMHi Try This ^\+?(\d[\d-. ]+)?(\([\d-. ]+\))?[\d-. ]+\d$
Rajeesh MenothPosted Aug 1, 2015, 7:45 AM
Vipan SharmaPosted Aug 1, 2015, 5:33 AM