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