Surlex (Simple URL Expression) is a language for matching and extracting text, similar to regex (regular expression). It works by generating a regular expression from a more concise syntax that is designed to produce easy-to-read url patterns.
Documentation is available as RestructuredText in the "docs" directory. HTML documentation is at:
A tutorial also exists at:
Installation:
Download and extract the tarball and run "python setup.py install"
or.. install with PyPI/pip by running "pip install surlex"