Table of Contents

Python - Regular Expression (called REs, or regexes, or regex patterns)

About

Regular expression in Python

The regexp in Python have matching operations similar to those found in Perl.

Backslash

Tester

Example

Web Log Parsing

What is the Apache Common Log Format (CLF)?

'^(\S+) (\S+) (\S+) \[([\w:/]+\s[+\-]\d{4})\] "(\S+) (\S+)\s*(\S*)" (\d{3}) (\S+)'
127.0.0.1 - - [24/Jul/1973:08:32:01 -0400] "GET /images/gerardnico.gif HTTP/1.0" 200 2564

Word tokenization

re.split

Documentation / Reference