Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Regular Expressions solution in Clear category for Conversion from CamelCase by Oksana_Antropova
def from_camel_case(name):
import re
name = name[0].lower() + name[1:]
return re.sub(r'[A-Z]', lambda m: f'_{m[0].lower()}', name)
March 30, 2019