Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- What is Validation? 3:57
- Using Regular Expressions in JavaScript 2:33
- Flags 4:12
- Review: Regular Expressions with JavaScript 5 questions
- Validating a Username 5:16
- Validating a Password 3:53
- Validating a Phone Number 1:50
- Validating an Email 3:30
- Form Validation 2 objectives
- Review: Validating with Regular Expressions 5 questions
Well done!
You have completed Regular Expressions in JavaScript!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Learn how to validate a password that requires at least one lowercase letter, one uppercase letter and one number.
Password Regular Expression
Here's the regular expression we end up with in the video. It uses a "lookahead".
/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$/
Resources
- Lookaheads in regular expressions.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
Chris Adams
Front End Web Development Techdegree Graduate 29,423 Points0 Answers
-
ysantana
9,579 PointsAdd Special Character validation to password lookahead RegEX
Posted by ysantanaysantana
9,579 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up