Python Bootcamp 2010 : Regular Expressions
Regular expressions are just that, regular. They can be expected to operate in a approximately the same way everywhere.
How do they work in Python?
- string Module — Common string operations
- String constants (ascii_letters, digits, hexdigits, whitespace, printable...)
- String Formatting ()
- Format String Syntax
- Format Specification Mini-Language
- Template strings
- String functions
- Deprecated string functions
- re Module — Regular expression operations
- Regular Expression Syntax
- Matching vs Searching
- Module Contents
- Regular Expression Objects
- Match Objects
- Examples
- Checking For a Pair
- Simulating scanf()
- Avoiding recursion
- search() vs match()
- Making a Phonebook
- Text Munging
- Finding all Adverbs
- Finding all Adverbs and their Positions
- Raw String Notation
![(please configure the [header_logo] section in trac.ini)](/cgi-bin/hackerwithin.fcgi/chrome/site/thwlogo-small.png)