I agree with @pm100 - unless you _really_ need this in a `RegularExpressionAttribute`, having it in code would be much simpler and testable.
– stuartdMay 27 '22 at 00:41
1
Does this answer your question? [Regex for password must contain at least eight characters, at least one number and both lower and uppercase letters and special characters](https://stackoverflow.com/questions/19605150/regex-for-password-must-contain-at-least-eight-characters-at-least-one-number-a)
– Ken WhiteMay 27 '22 at 01:04
1
Sounds like you could adjust your pattern to [something like this](https://regex101.com/r/GJcb43/1).
– bobble bubbleMay 27 '22 at 08:01