We have learned regex works in JavaScript. Now lets work with our regex lab, applying all of the concepts we have just learned.
Fork this repo
Clone this repo
Practice DOM Features
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.
Create a form as per the output shown here.
Validate the form as per the rules given below. Validation rules
- 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.
- password should not be empty.
- password must contain 1 uppercase letter, 1 lowercase letter, atleast 1 number.
- password must contain the following special characters
!@#$%^&*()
. - Phone number should be numerical in nature.
- Should not contain any special characters.
- Should be a ten digit number.
Happy Coding ProGrads❤️