Hi
I have created a simple model,there is Mobile number property and i want to apply restriction on that.
I am using this (@"^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$") but problem is length of digit must 10 and foreign mobile number may not be 10 digit.
how to apply validation on mobile number, this will be for indian and also foreign user.
so please let me know which regular expression is better for to solve this problem.
Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 19, 2016, 2:45 AM EDT
Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 19, 2016, 2:46 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 19, 2016, 2:57 AM EDT
sameer shaikh181 reputationPosted Sep 19, 2016, 3:02 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 19, 2016, 3:27 AM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Sep 19, 2016, 3:40 AM EDT
Ramesh PalaniappanRank #370 · 6.8K reputationPosted Sep 19, 2016, 5:47 AM EDT
Raj KumarRank #2,827 · 503 reputationPosted Sep 20, 2016, 9:23 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts