JavaScript Lingo: Regular Expressions


RegExp is not formatted like anything else in JS, and can have a steep learning curve.

RegExp can also be an incredibly useful and efficient tool.

Using RegExp, you can match, replace, search, and split a string, one of the most difficult types of values to manipulate.

Like with all of the other videos, we won't get into the nitty gritty, but I want to show you a few examples of where RegExp is useful.

If you wanted to create a registration page that verified passwords contained at least a number and a capital letter, you could use RegExp.

If you wanted to ensure that dates entered in a page were all valid dates in the future, you could use RegExp.

While there are limitless ways to use RegExp, many of them include validating or automatically editing information.