Save this video — free

Lecture 10: Regular expressions

Burton Ma · 46:35 · Watch on YouTube

Lecture 10: Regular expressions Watch on YouTube →

Overview

Burton Ma introduces POSIX extended regular expressions in Bash, showing how the `[[ string =~ pattern ]]` operator tests for matches and how anchors, character classes, quantifiers, grouping, and alternation build more precise patterns. He applies those tools to integer validation and `grep -E` searches, while emphasizing that broad patterns often match unintended text and that regexes should be used with care.

Key takeaways

Chapters

0:00 Why Regular Expressions Matter in Bash
7:30 Literal Text Matches and Case Sensitivity
11:30 Anchors and Dot for Exact and Positional Matches
16:10 Character Classes, Ranges, and Literal Metacharacters
20:40 Regex Quantifiers and Validating Signed Integers
27:20 Brace Quantifiers and Grouped Subexpressions
30:20 Alternation with `|` and Date-Component Patterns
35:30 Searching Files and Source Code with `grep -E`
43:00 HTML Links, Word-Game Searches, and Regex Cautions

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Burton Ma.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.