filmov
tv
How to use Regular Expressions (RegEx) in JavaScript | Tutorial in UNDER 20 Minutes (2020)
Показать описание
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
Комментарии