JavaScript Lingo: Regular Expressions

preview_player
Показать описание
RegExp (Regular Expressions) in JavaScript

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 more 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 information that users input.
Рекомендации по теме
Комментарии
Автор

She's fun and quirky. But examples are really needed for this type of video. Regex is hard to grasp without seeing it in action.

Zakyrie
Автор

I think it's pronounced "regex" (rej-ex)

Wb