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
- Check if a given string is a palindrome
- How to get minutes from datetime
- How to add an element to the list
- How to check if object is of certain type
- One-liner if else
- Join list elements into string
- How to swap two variables values
- One-liner calculator
- Remove duplicate lines from text file
- How to get hour from datetime
See more codes...