Regular Expressions (Regex) are a tool for finding patterns within a string of text. They are generally used to validate text from user input or to search through text to either extract a portion or to replace parts. Very much like find and replace in every word processor.

Almost every programming language implements regular expressions. JavaScript, for instance, has support for regular expressions built-in.

Regular expressions can be difficult to learn because it literally looks like gibberish to beginners. The syntax is also not very intuitive. But if you take the time to understand and learn it, not only feel like you are decoding a German cipher, but you’ll also see how powerful regular expressions can be.

In this video, we’ll cover flags, character classes, anchors, positive/negative lookaheads, and we’ll look at some real-world examples.

📑 Chapters:
01:12 What is Regex
02:30 Basics
03:06 Wildcard
03:25 Anchors
04:47 Character Classes
06:38 Quantifiers
08:24 Grouping
11:07 Password Example
13:07 Regex in JavaScript

📚 Materials/References:
Regexr Website:
Codepen Tests:

#regex #web-development #javascript #developer

Regular Expressions (RegEx) Crash Course in 20 Minutes
2.20 GEEK