When you're working with regular expressions (aka regex/regexp), it's easy to ignore speed and memory use. But you can easily get over these problems, and optimize your regexp use, with re.compile and re.finditer. In this video, I show you how (and when) to use them! I don't teach regular expressions here; if you want to learn them, try my free e-mail course at https://RegexpCrashCourse.com/ . In addition to these videos, I have an active blog and free, weekly "Better developers" mailing list; see more at https://lerner.co.il/ . Subscribe to this channel, as I try to go through all of the Python standard library!