Convert not_camel_case to notCamelCase and/or NotCamelCase in Python?
<p>Basically, the reverse of <a href="http://stackoverflow.com/questions/1175208/does-the-python-standard-library-have-function-to-convert-camelcase-to-camel-case">this</a>. Here's my attempt, but it's not working.</p>

<pre><code>def titlecase(value):
    s1 = re.sub('(_)([a-z][A-Z][0-9]+)', r'\2'.upper(), value)
    return s1
</code></pre>
