string find/replace

Carlo carlo at somewhere.com
Wed Dec 1 12:59:04 EST 2010


On 2010-12-01, Peter Otten <__peter__ at web.de> wrote:
>>>> import re
>>>> re.compile("([a-z])([A-Z])").sub(r"\1 \2", "camelCase")
> 'camel Case'

Very simple if you know it. Thank you!



More information about the Python-list mailing list