Regular expressions are one of the tools that every programmer needs, but is often scared of. In this course, we'll explore the re module that Python provides and learn to write regular expressions for many different situations.
Introduction to Regular Expressions
Let's break down regular expressions and their methods so we can turn a block of messy text into useful dictionaries. We'll use .match(), .search(), and .findall() to find matches for our patterns, and we'll build our patterns up from something very precise to something more flexible and powerful. Finally, we'll turn our text into real Python dictionaries.