I want some specific validations in a form and I cannot find an elegant way of doing so. Let's say I have a field, that can satisfy one of a few groups of validation constraints to be valid? The specific validation for a password I want is:
- required
- max length 256 characters
- min length 10 characters
- Requires at least one integer
- Requires at least one symbol
- Requires at least one capital letter
OR
- required
- max length 256 characters
- min length 32 characters
I want validation to accept either of these groups for the same field. Is there an elegant way to do this with angular forms?