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
- Join list elements into string
- One-liner if else
- How to get minutes from datetime
- Check if a given string is a palindrome
- How to swap two variables values
- One-liner calculator
- How to validate xml
- How to get hour from datetime
- How to add an element to the list
See more codes...