Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
In this tutorial, we will look at Regex (Regular Expressions) basics and some examples of useful regex patterns. Regex is used to describe and select patterns inside of string data. Regular Expressions make up a small language that may be utilized inside of many other programming languages. Regex patterns may be used inside of JavaScript, Python, Java, C++, and more.
Subscribe https://bit.ly/3nGHmNn
Quick Concepts outline:
Regex Basics:
• Character sets
• Negated sets
• Ranges
• Global and Case Insensitive flags
• Special character: dot
• Escaping special characters
• Word characters
• Digits
• Whitespace
• Match all characters
• Match the beginning of a string
• Match the end of a string
• Multiline flag
• Capturing and Non-capturing groups
• Positive and Negative lookahead
• Quantifiers
• Select one or more
• Select zero or more
• Make a selection optional
• Make a quantifier lazy instead of greedy
• Alternation: using "or" |
• Example pattern 1
• Example pattern 2
• Example pattern 3
References:
MDN Regular Expressions: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
RegExer: https://regexr.com/
Regex101: https://regex101.com/
More Beginner JS Videos:
freeCodeCamp: https://youtu.be/PkZNo7MFNFg
Traversy Media: https://youtu.be/hdI2bqOjy3c
The Net Ninja: https://youtu.be/iWOYAxlnaww
Follow Me:
Twitter: https://twitter.com/yesdavidgray
Reddit: https://www.reddit.com/user/DaveOnEleven
Medium: https://medium.com/@davegray_86804
#regex #regular #expressions