Mastering Regular Expressions

Training Architect
course instructor image
Elle Krout
Elle is a Course Author at Linux Academy and Cloud Assessments with a focus on DevOps and Linux. She's a SaltStack Certified Engineer, and particularly enjoys working with configuration management. Prior to working as a Course Author, she was Linux Academy's technical writer for two years, producing and editing written content; before that, she worked in cloud hosting and infrastructure. Outside of tech, she likes cats, video games, and writing fiction.

Introduction

Course Information

About the Course
00:02:18
About the Training Architect
00:01:08

Introducing Regular Expressions

What Are Regular Expressions?
00:07:19
Tools
00:09:34
The Regex Engine
00:07:31
Standards
00:09:37

Using Regular Expressions

Basic Pattern Matching

Literal Patterns
00:03:47
Characters and Words
00:04:27
Digits
00:03:17
Whitespace
00:08:32
Unicode
00:08:22
Hands-On-Lab: Basic Regular Expressions: Working with Hardware Data
00:30:00

Alternation and Quantifiers

Location
00:07:38
Boundaries
00:05:07
Alternation
00:04:42
Repetition
00:11:56
Possessive Quantifiers
00:03:48
Hands-On-Lab: More Basic Regular Expressions: Matching an Email Address
00:30:00

Classes and Groups

More Character Classes
00:05:58
Backreferences
00:09:57
Named Groups
00:06:11
Non-capturing Groups
00:06:24
Hands-On-Lab: More Regular Expressions: Using Groups to Process Text
00:30:00

Lookarounds

Lookaheads
00:07:41
Lookbehinds
00:08:50
Hands-On-Lab: More Regular Expressions: Using Lookarounds to Parse Data
01:00:00

Conditionals

If Conditionals
00:08:33
Named and Nested Conditionals
00:08:03
Hands-On-Lab: Regular Expressions: Parsing Mailing List Data
00:30:00

Projects

sed

Using a sed Script to Generate Human-Readable Files - Part 1
00:13:40
Using a sed Script to Generate Human-Readable Files - Part 2
00:13:11
Hands-On-Lab: Regular Expressions: Marking Up a Document with sed
01:00:00

Perl

Using Perl to Convert an HTML Document - Part 1
00:14:15
Using Perl to Convert an HTML Document - Part 2
00:12:08
Hands-On-Lab: Regular Expressions: Using Perl to Convert HTML to Latex
01:00:00

JavaScript

Password Validation with Javascript
00:19:30
Hands-On-Lab: Regular Expressions: Form Validation
01:00:00

Conclusion

Final Steps

Final Thoughts and Next Steps
00:01:38

Details

In Mastering Regular Expressions, we begin by breaking down the "vocabulary" and "grammar" of regular expressions: First by learning just what all those symbols and shortcuts mean, then by learning how to manipulate those tokens to craft complex regular expressions that achieve just the right desired result. We'll do this by using some common Linux tools, such as grep and sed, as well as through Perl and, eventually, JavaScript for some front-end regex use examples.


The second part of this course involves three different projects demonstrating ways to combine the use of regular expressions with various scripts and scripting languages to get the desired matches and results.


Download The Mastering Regular Expressions Interactive Diagram here!


Study Guides

Mastering Regular Expressions - Interactive Diagram

Here is the diagram used throughout the course!

Instructor Deck

Community

certificate ribbon icon

Earn a Certificate of Completion

When you complete this course, you’ll receive a certificate of completion as proof of your accomplishment.

Looking For Team Training?

Learn More