C# - Strong Password Regular Expression
^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[~!@ #$%^&*_+=[{\]};:<>|.?,-]).{6,20}$ var hasMatchPasswordRegex = new Regex(service.GetGlobalSetUp().Rows[ 0 ][ "password_regex" ].ToString()); if (!hasMatchPasswordRegex.IsMatch(change_password.NEW_PASSWORD)) { response.status = HttpStatusCode.InternalServerError; response.statusText = " <strong>Fail</strong>" + service.GetGlobalSetUp().Rows[ 0 ][ "password_mis_match_message" ].ToString(); var resultOutput = JsonConvert.SerializeObject(response, Formatting.Indented, new JsonSerializerSettings { ...