CS50P - Lecture 7 - Regular Expressions

preview_player
Показать описание

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:20:40 - Capturing Groups
01:29:57 - Walrus Operator
01:32:35 - Extracting from Strings
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

HOW TO JOIN CS50 COMMUNITIES

HOW TO FOLLOW DAVID J. MALAN

***

CS50 SHOP

***

LICENSE

CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

David J. Malan
Рекомендации по теме
Комментарии
Автор

I have often used the phrase "Let me during large gatherings and it is like a dog whistle for finding my CS50 peeps in a crowd. Their heads whip around and our eyes connect and we share a smile. Thank you Professor Malin for all you have done for us. Your contribution to the world will never be fully quantified.

kingofcastlechaos
Автор

I said it before and I'll say it again, I'll never forget this man in my whole lifetime.

xavier
Автор

david i'm gonna need to put a backslash before you, bc you're a special character to me ;)

seraphim
Автор

I like the professor's way of speaking.Very articulate and precise.

Caravanseraii
Автор

David J. Malan, Sir you are a great role model for all lecturers. you put a lot of effort into teaching and making the class fun. I hope all lecturers are like you.

Drop_The_Mic
Автор

I never thought regular expressions could be fun until I watched this lecture. Thank so much!

Terrysophia-lgoe
Автор

omg, I can't belive this has been my favorite lecture, the most fun, entertaining, and easy to understand. I mean it's regex we are talking about, it could have been a completely pain otherwise. Thank you so much David, and the cs50 team for giving us this opporunity to learn from the best

diegomaterano
Автор

And here I was thinking I would never grasp regex. Prof. Malan is a one in a million teacher, a true master, an artist at the top of his craft. Many thanks to the whole CS50 crew.

oooogaabooogaa
Автор

I looked into the notes a few times before starting this lecture and i was so confused and was dreading having to learn all of this honestly and was getting desperate and thought i should just quit.
But David explained it so well, everything just clicked and it all just made sense. Incredible teaching skills. Thank you so much to the entire teaching staff at CS50 and especially David.
Came into CS50P with no prior coding or CS experience at all and it is such a good feeling seeing the progress i've made so far. What an incredible journey.

VanishMe
Автор

The best explanation of regex that I've ever seen.

davngo
Автор

Hands down the best Regex video I've ever watched. Thank you

liyangau
Автор

i am a collage student from VIT, not so great collage but by attending your cource make me feel like i am at havard, you make all concepts so easy to grasp, i really want to come at this year cs50 fest but due to financial limitations i can't , but one day i will really like to meet you in person

drutsuk
Автор

34:43 works because of last point and $ in regex accordingly, but there is no necessety in ^, it has no effect

sergey_zatsepin
Автор

This class is way harder than I thought before, but thankfully there's David Malan answering all the questions right after they pop up in my brain even though I couldn't even ask.

evachen
Автор

I'm just so happy to learn Python the easy way with David.

madefromjames
Автор

David Malan is one in a billion!
Regards from Romania

adileru
Автор

Bravo, you guide your students through even relatively tricky topic with grace.

mariyayurchenko
Автор

Man, this is like having Joe Satriani as your guitar instructor!! Amazing stuff!! Thank you sir!!

priteshugrankar
Автор

Thanks for all of this and your great efforts in teaching. Can't see it live but will definitely see it tonight

yashgoyal
Автор

Love the lectures even if I have seen it before never gets boring

njmanga