Unix Support

Python: Regular Expressions

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.


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.

The title of this document is: Python: Regular Expressions
URL: http://www-uxsup.csx.cam.ac.uk/courses/moved.PythonRE/index.html