Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re solution in Clear category for Conversion into CamelCase by lxf42
import re
def to_upper(m):
return m.group(0)[1].upper()
def to_camel_case(name: str) -> str:
return name[0].upper() + re.sub(r'_\w', to_upper, name[1:])
Feb. 25, 2022