permuting letters and fairy tales

Scott David Daniels Scott.Daniels at Acm.Org
Fri Nov 12 14:26:17 EST 2004


Andrew Dalke wrote:
 >
Not to prolong this, but if you are dealing with camelCase:

> word_pat = re.compile('[' + string.letters + ']{4,}')

you might want to use:
     word_pat = re.compile('[' + string.letters + ']['
                           + string.lowercase + ']{3,}')


-Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list