- Simple Validation
required, email, phpone number , digtial-only, alphpbet-only,etc.
These validation can be done using a regular expression.
We cann’t do Date validation only using a regular expression, but I still prefer to consider it to be an Simple Validation.
- Complex Validation
length,range.
These validation need extra argument to decide the result.
- Mixed Validation
Password-identical Validation, required-if-something validation,etc.
The Validation results are based on more than one element.