Be careful with that book though, it's RE examples are Perl-centric and not exactly the same implementation that Python uses. However, it's a good place to start This will also be useful http://www.amk.ca/python/howto/regex/