Skip to content
Advertisement

Tag: camelcasing

How to do CamelCase split in python

What I was trying to achieve, was something like this: So I searched and found this perfect regular expression: As the next logical step I tried: Why does this not work, and how do I achieve the result from the linked question in python? Edit: Solution summary I tested all provided solutions with a few test cases: In summary you

Check for camel case in Python

I would like to check if a string is a camel case or not (boolean). I am inclined to use a regex but any other elegant solution would work. I wrote a simple regex Would this be correct? Or am I missing something? Edit I would like to capture names in a collection of text documents of the format Edit2

Advertisement