How to use Regular Expressions (RegEx) in JavaScript | Tutorial in UNDER 20 Minutes (2020)
Regular Expressions Cheat Sheet: https://codestackr.podia.com/javascript-regular-expressions-cheat-sheet
๐ฆธ Become A VS Code SuperHero Today: https://vsCodeHero.com
๐ง๐พโ๐คโ๐ง๐ฝ Join my Discord developer community: https://discord.gg/A9CnsVzzkZ
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:
Regular Expressions Cheat Sheet: https://codestackr.podia.com/javascript-regular-expressions-cheat-sheet
Regexr Website: https://regexr.com
Codepen Tests: https://codepen.io/codeSTACKr/pen/dyYEEMg
โฑ 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:
Treehouse Discount Code: https://treehouse.7eer.net/codeSTACKr
_____________________________________
๐ ๏ธ Tools I use:
๐ Theme: https://marketplace.visualstudio.com/items?itemName=codestackr.codestackr-theme
๐ Font: STACKr Code (Exclusive to my VS Code Course – https://vsCodeHero.com)
๐ SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions
๐ค I now use AI-powered code completions thanks to Kite. You should too so grab it FREE: https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=codestackr&utm_content=description-only
_____________________________________
๐ Get 1 Year of FREE Hosting (Sponsor Link)
https://www.atlantic.net/Codestackr/
๐จ Use code: Stackr to get $25 in FREE Credit!!
_____________________________________
๐ Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________
Watch Next:
Web Development – Beginners Roadmap (2020) – https://youtu.be/iogabydg2y0
Playlist: Web Development For Beginners – https://www.youtube.com/watch?v=Ez4yHS2dsN8&list=PLkwxH9e_vrAJ0WbEsFA9W3I1W-g_BTsbt
_____________________________________
Connect With Me:
Website: http://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr/
Facebook: https://facebook.com/codeSTACKr
_____________________________________
** 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
source