What one really wants is a re option capable of handling recursive structures, something along the lines of what PHP has:
http://uk2.php.net/manual/en/regexp.reference.php Under the 'Recursive Patterns' heading. As far as I am aware, no such thing exists for Python (yet?). 2009/3/24 Peter Waller <peter.wal...@gmail.com> > > > Could this approach be made to handle recursive expansion? From the example > with the script: >
-- http://mail.python.org/mailman/listinfo/python-list