lundi 6 juin 2016

REGular EXp IN C#

Its my Question i want to be use 5 alphabets, and must using only one number and only one Special Characters @iam using this syntax

[RegularExpression(@"^(?=.[a-z])(?=.[A-Z])(?=.\d)(?=.[\W]){7,10}", ErrorMessage = "Use letters and Atleast 1 numeric and 1 special character Must")]

Aucun commentaire:

Enregistrer un commentaire