title: Check for camel case in Python
body: <p>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 </p>
  
  <pre><code>(?:[A-Z])(?:[a-z])+(?:[A-Z])(?:[a-z])+
  </code></pre>
  
  <p>Would this be correct? Or am I missing something?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I would like to capture names in a collection of text documents of the format </p>
  
  <pre><code>McDowell
  O'Connor
  T.Kasting
  </code></pre>
  
  <p><strong>Edit2</strong></p>
  
  <p>I have modified my regex based on the suggestion in the comments</p>
  
  <pre><code>(?:[A-Z])(?:\S?)+(?:[A-Z])(?:[a-z])+
  </code></pre>