Here is a regex inverter invRegex.py that parses simple regular expressions, and creates a generator structure to generate strings that match the regex.
atropine is a screen-scraping library built on top of BeautifulSoup, which helps programmers make assertions about document structure while getting at the data they are interested in.
SimpleParse is a BSD-licensed Python package providing a simple parser generator for use with the mxTextTools text-tagging engine. SimpleParse allows you to generate tagging tables for use with the text-tagging engine directly from your EBNF grammar.