mardi 14 juin 2016

Mobile number model Regular Expression to validate mobile no greterthen 0 with fixed digit length 10 (MVC 5)

currently i am using code below, but not able to add validate > 0 currently its not validate 0000000000

[RegularExpression(@"(\b\d{3}[-.]?\d{3}[-.]?\d{4}\b)", ErrorMessage = "Please enter valid mobile no.!")]

Aucun commentaire:

Enregistrer un commentaire