How to use Regular Expressions (RegEx) in JavaScript | Tutorial in UNDER 20 Minutes (2020)

preview_player
Показать описание


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.

📚 Materials/References:

⏱ Chapters ⏱
📌 Intro (00:00)
📌 What is Regex (01:12)
📌 Basics (02:30)
📌 Wildcard (03:06)
📌 Anchors (03:25)
📌 Character Classes (04:47)
📌 Quantifiers (06:38)
📌 Grouping (08:24)
📌 Password Example (11:07)
📌 Regex in JavaScript (13:07)
_____________________________________

📚 Learn to CODE in just a FEW months here:
_____________________________________

🛠️ Tools I use:

_____________________________________

🚀 Get 1 Year of FREE Hosting (Sponsor Link)
🚨 Use code: Stackr to get $25 in FREE Credit!!
_____________________________________

💖 Show support!
_____________________________________

Watch Next:
_____________________________________

Connect With Me:
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#codeSTACKr #regex #RegularExpression
Рекомендации по теме
Комментарии
Автор

Thanks for all of the support! Next Up:

codeSTACKr
Автор

Looks like you read my mind of what I was looking for, thanks for this video! You are a star! ⭐️

srinivasankh
Автор

I´ve wanted to learn this for so long,
thanks

alibarznji
Автор

Early morning, I am thinking about studying regex because of tons of forms in my project. This is great!! ❤ thank you sir. Keep safe and thank you for the hardwork

elilumilay
Автор

thanks, recently I worked with regex in php... very difficult to understand.. for me it's for advanced course

Viralplace
Автор

cheat sheet requires complete personal info to access, no thanks!

ca-ltfc