pythonTransform camel case to snake case
import re
re.sub('([a-z0-9])([A-Z])', r'\1_\2', value).lower()ctrl + cvaluetext to be processed, must be in string format |
More of Python
- Remove duplicate lines from text file
- How to add an element to the list
- How to get minutes from datetime
- How to swap two variables values
- How to get month from date
- One-liner calculator
- One-liner if else
- How to merge two lists
- Check if a given string is a palindrome
- How to query json
See more codes...