About Lesson
Password Pattern:-
- Only alphabetic data entry of maximum 15 characters and at least one character:
[A-Za-z]{1,15}
- Only letter (either case) and number: at least single character, no maximum limit:
[A-Za-z0-9]{1,}
- Only numbers and decimal point allowed: maximum 10 digits allowed:
[0-9.]{,10}
- Only numbers and letters allowed: no limit:
[A-Za-z0-9]+
- Only numbers, letters (either case),underscope and @ sign allowed: no limit:
[A-Za-z0-9_@]+
- Only numbers, letters (either case),underscore and hyphens allowed: must be between 1 to 25 character: first character must be a letter:
[A-Za-z][A-Za-z0-9_-]{1,25}
- Only positive or negative numbers are allowed:maximum upto 10 digits and at least 1 digit:
[0-9.+-]{1,10]
Note:-
If the data entered by the user does not match with our pattern we can display a customized error message for user. To do so we have to use “title” attribute along with pattern attribute.