Function
docutils.parsers.rst.states.build_regexp

Signature

build_regexp(definition, compile=1)

Documentation String

Build, compile and return a regular expression based on definition.

Parameter:definition: a 4-tuple (group name, prefix, suffix, parts), where "parts" is a list of regular expressions and/or regular expression definitions to be joined into an or-group.