CS50P - Lecture 7 - Regular Expressions

This is CS50P, CS50’s Introduction to Programming with Python. Enroll for free at Slides, source code, and more at Playlist at TABLE OF CONTENTS 00:00:00 - Introduction 00:00:24 - Regular Expressions 00:01:16 - Validation without Regular Expressions 00:10:45 - re Library 00:14:04 - Regular Expression Patterns 00:33:09 - Matching Start and End 00:38:58 - Sets of Characters 00:49:18 - Character Classes 00:57:38 - Flags 01:00:40 - Groups 01:10:06 - Email Address Validation 01:12:14 - match, fullmatch 01:13:47 - 01:20:40 - Capturing Groups 01:29:57 - Walrus Operator 01:32:35 - Extracting from Strings 01:40:31 - 01:53:24 - 02:03:57 - Conclusion An introduction to programming using a language called Python. Learn how to read and write code as well as how to test and “debug“ it. Designed for students with or without prior programming experience who’d like to learn Python specifically. Learn about functions, arguments, and return values (oh my!); variables and types; conditionals and Boolean expressions; and loops. Learn how to handle exceptions, find and fix bugs, and write unit tests; use third-party libraries; validate and extract data with regular expressions; model real-world entities with classes, objects, methods, and properties; and read and write files. Hands-on opportunities for lots of practice. Exercises inspired by real-world programming problems. No software required except for a web browser, or you can write code on your own PC or Mac. Whereas CS50x itself focuses on computer science more generally as well as programming with C, Python, SQL, and JavaScript, this course, aka CS50P, is entirely focused on programming with Python. You can take CS50P before CS50x, during CS50x, or after CS50x. But for an introduction to computer science itself, you should still take CS50x! *** HOW TO SUBSCRIBE HOW TO TAKE CS50 edX: Harvard Extension School: Harvard Summer School: OpenCourseWare: HOW TO JOIN CS50 COMMUNITIES Discord: Ed: Facebook Group: Faceboook Page: GitHub: Gitter: Instagram: LinkedIn Group: LinkedIn Page: Medium: Quora: Reddit: Slack: Snapchat: SoundCloud: Stack Exchange: TikTok: @cs50 Twitter: YouTube: HOW TO FOLLOW DAVID J. MALAN Facebook: GitHub: Instagram: LinkedIn: Quora: TikTok: @davidjmalan Twitter: *** CS50 SHOP *** LICENSE CC BY-NC-SA 4.0 Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License David J. Malan malan@
Back to Top