Save this video free

Lecture 22: Florida Man and Regex

Professor Rosen · 1:14:08 · Watch on YouTube

Part of Temple University CIS 1051. See all 23 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Regular expressions turn text-pattern searches and redaction into compact, reusable operations, illustrated by the risk of publishing sensitive information in Florida government emails. The lecture explains character classes, built-in shorthand, quantifiers, and Python's `re.sub`, then demonstrates how an eight-line file workflow can replace Social Security numbers with a redaction label; it also reviews the course's exam format.

Key takeaways

Chapters

0:00 Temple Final Exam Schedule and Conflict Rules
5:09 Final Exam Format: Choose Five of Seven Questions
12:32 Exam Three Emphasizes Regex and Exam Two Skills
14:38 Florida Man Headlines as a Pattern-Matching Problem
23:30 Florida Sunshine Laws and Public Records
31:45 Why Regex Is Useful for Redacting Sensitive Text
37:00 Regexr Demonstrates Literal Searches and Optional Characters
40:30 Character Classes Match Sets and Ranges of Characters
45:00 Built-In Regex Classes and Wildcard Period
50:45 Quantifiers, Repetition Groups, and the Kleene Star
58:10 Regular Languages, Finite-State Machines, and Exam Tasks
1:01:10 Python File Redaction with the re Module
1:08:45 Testing the Redaction Script on target.txt
1:12:45 The Regex Pattern Is the Main Part That Changes

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

Transcript excerpt

0:00 All right. So, first questions first. Um, exam three and also as a coral corollary the final exam. All right. Uh, typically all right. So, if I recall correctly, our last day of the semester is December 7th on Monday, right? That's just the last day, right? That's when your final project is due. Typically what I do because of time constraints and just constraints and okay and just because of constraints in general what I typically do is I hold exam three in the lecture on Thursday sorry on the day on like the last possible day of class. Okay everybody everybody get that?

0:51 Um, if you are happy with your scores for exam one and two, you can just take a zero on this exam and it gets dropped, right? Because of those three midterm grades, your you we drop the lowest, right? The final exam is a different beat all together. Um, the fi first off final exam. So, this is how I find out where when the final when the final exam is. Final exam. I look for final exam Temple University. And it will bring me to this PDF. Right here's the exam schedule says they're from December 9th to December 15th. And we're actually going to do the thing that we that you don't do because uh nobody does this. We're actually going to try reading this doc a

1:38 bit of this document because it contains some important information not just for this class but for all your classes. There's one study day from t on Tuesday 128. File exams may not be scheduled on study days or the last week of classes. That's right. Your professor can't try to get out of out of uh the university early by putting the exam on this last

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

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

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.