Information & documentation
Python: Regular Expressions
Course notes
Course description
This course is part of the Scientific Computing series, and as such many of the examples chosen are of most relevance to scientific computing.
This course explains how to construct and use regular expressions in Python (using the re module). It does not discuss how to construct complex regular expressions, nor does it cover regular expressions themselves in much detail, rather it focuses on how to use regular expressions in Python.
For a detailed discussion of regular expressions see the “Pattern Matching Using Regular Expressions” course.
Notes
- Notes (PDF): the hand out given to attendees at the course
- Slides (ODF): the source version of the slides and notes
- Examples and exercises (TGZ): the home directory used for the course
- Examples and exercises (browseable): the home directory used for the course
All comments or questions regarding this course, and any course materials provided on this page, should be sent to scientific-computing@ucs.cam.ac.uk.
