Regular Expressions for Beginners and Beyond! With Exercises Free Tutorial Download
What you’ll learn
Basic regular expression syntax
Tokens representing classes of characters
Using flags and greedy vs. lazy to fine-tune your regular expressions
Using groups for more advanced searching, plus replacing parts of strings
Lookahead and Lookbehind
None! We will be using the regex101 web site to test our regular expressions, so all you need is a computer and web access
Regular expressions have a bad reputation for being difficult to understand. This course introduces tools and a systematic approach so you can unlock the power of regular expressions to write compact, elegant code.
In this course, we will cover concepts from basic to advanced:
- Character collections, including negation
- Character ranges
- String boundaries
- Character Classes
- Greedy vs. Lazy Quantifiers
- Multi-Character Quantifiers and Options
- Capturing Groups (numbered and named)
- Substitution / Replace
- Lookahead and Lookbehind
Depending on your level of experience, you can start at the beginning, or start later with concepts you’ve always been interested in, but haven’t had a chance to learn yet.
Examples progress in a logical, narrative way. At the end of one example, we will think about how we might tweak it to do something similar but more powerful. In this way, the concepts flow naturally from one example to the next.
The course uses regex101 (with permission of the author) to show how regular expressions match the test strings. There are also slides breaking down each regular expression example and explaining each piece.
Please use the Q&A feature on Udemy to ask questions! I love to talk about why regular expressions don’t seem to be working, discussing decisions I made about course content, and debating regular expression philosophy.
Who this course is for:
- Curious folks new to regular expressions
- Developers looking to sharpen or expand their regular expression skills