public static string FromAtLeast(SpecialSection model) { string atleast = ""; if (model.atLeastOne) { atleast = atleast = "(?=.*[$@!%*?&])"; } return(atleast); }
public static string FromAtLeast(SpecialSection model, bool isOk) { string atleast = ""; if (model.atLeastOne) { atleast = atleast + "$@!%*?&"; } return(atleast); }
public static string FromSpecialCharacter(SpecialSection model) { string regexp = ""; if (model.category == "All") { regexp = "$@!%*?&"; } else if (model.category == "custom") { regexp = FromCustom(model.customText); } return(regexp); }