public UserName f_UserName(UserName userName) { Rejex RJ = new Rejex(); ErrorCollection error = new ErrorCollection(); if (userName.userName == null) { userName.userName_error = error.error_box(11, false); } else { bool acces; acces = RJ.rejex(userName.userName, "^[a-zA-Z0-9]{8,30}$"); userName.userName_error = error.error_box(7, acces); } return(userName); }
public Email f_Email(Email email) { Rejex RJ = new Rejex(); ErrorCollection error = new ErrorCollection(); if (email.email == null) { email.email_error = error.error_box(11, false); } else { bool acces; acces = RJ.rejex(email.email, "^(([a-zA-Z0-9._%-]{3,15})+@([a-zA-Z0-9.-]{5,16})+.[a-zA-Z]{2,4})*$"); email.email_error = error.error_box(6, acces); } return(email); }