Important Notice:

Course Content
Heading Tag / Paragraph Tag
0/2
Horizontal Rules (HR element)
0/1
Font Element
0/1
Image Element
0/1
HTML Basic (Chapter 3) M2-R5.1
About Lesson
Password Pattern:-
  1. Only alphabetic data entry of maximum 15 characters and at least one character:

[A-Za-z]{1,15}

  1. Only letter (either case) and number: at least single character, no maximum limit:

[A-Za-z0-9]{1,}

  1. Only numbers and decimal point allowed: maximum 10 digits allowed:

[0-9.]{,10}

  1. Only numbers and letters allowed: no limit:

[A-Za-z0-9]+

  1. Only numbers, letters (either case),underscope and @ sign allowed: no limit:

[A-Za-z0-9_@]+

  1. 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}

  1. 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.

error: Content is protected !!