Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

camel case to snake case python

import re

name = 'CamelCaseName'
name = re.sub(r'(?<!^)(?=[A-Z])', '_', name).lower()
print(name)  # camel_case_name
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #camel #case #snake #case #python
ADD COMMENT
Topic
Name
8+4 =