Bash-like brace expansion

Paul McGuire ptmcg at austin.rr.com
Tue Mar 24 16:25:43 EDT 2009


On Mar 24, 12:39 pm, Peter Waller <peter.wal... at gmail.com> wrote:
>
> Maybe I might re-implement this with pyparsing and some unit tests.
>

In your pyparsing efforts, you might draw some insights from this
regex inverter (that is, given an re such as "[AB]\d", returns "A0"
through "B9") on the pyparsing wiki: http://pyparsing.wikispaces.com/file/view/invRegex.py.

-- Paul




More information about the Python-list mailing list