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