The grep module

(Obsolete; removed in 2.0) This module provides different ways to search for text in text files.

The grep function takes a regular expression (using the old regex syntax, and a list of files to search.

Example: Using the grep module
# File:

import grep
import glob

grep.grep("\<rather\>", glob.glob("samples/*.txt"))
$ python
4: indentation, rather than delimiters, might become

A Django site. rendered by a django application. hosted by webfaction.