import retest_str = "ThisIsCamelCased"p = re.compile(r'(\S)([A-Z])')result = re.sub(p, r"\1_\2", test_str)print(result.lower())
Standard input is empty
this_is_camel_cased
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!