Image description

ProGrad Lab | JS | REGEX

We have learned regex works in JavaScript. Now lets work with our regex lab, applying all of the concepts we have just learned.

What should you do

Fork this repo
Clone this repo
Practice DOM Features

How To Submit

Upon completion, run the following commands:

git add .
git commit -m "ProGrad ID"
git push origin master

And finally, create a pull request so your ProGrad Mentor (PM) can review your work.

Progression 1: CREATE A FORM

Create a form as per the output shown here.

Image description

Progression 2: TIME TO VALIDATE

Validate the form as per the rules given below. Validation rules Image description

  • username should not be empty.
  • username should contain a minimum of 8 characters and a maximum of 15 characters.
  • Address should not be empty.
  • Email should contain @, .(dot) or underscore. Image description
  • password should not be empty.
  • password must contain 1 uppercase letter, 1 lowercase letter, atleast 1 number.
  • password must contain the following special characters !@#$%^&*(). Image description Image description
  • Phone number should be numerical in nature.
  • Should not contain any special characters.
  • Should be a ten digit number. Image description

Happy Coding ProGrads❤️