Lecture 8 - Regular Expressions
Presented by Anthony D. Joseph
Content by Anthony D. Joseph, Josh Hug
A random one of the following Google Forms will give you an alphanumeric code once you submit; you should take this code and enter it into the “Lecture 8” question in the “Quick Check Codes” assignment on Gradescope to get credit for submitting this Quick Check. You must submit this by Monday, September 28th at 11:59PM to get credit for it.
Motivation and canonicalizing strings.
Using the split method to extract from textual data.
Basic regular expression syntax (i.e. closures). Order of operations in regular expressions.
Expanded regular expression syntax (i.e. character classes). A couple of regular expression exercises.
Limitations of regular expressions. Other regular expression syntax (i.e. lazy closures).
Using regular expressions in Python. Regular expression groups.
Regular expression case studies on police data and restaurant data.