title: matching 3 or more of the same character in python
body: <p>I'm trying to use regular expressions to find three or more of the same character in a string. So for example:
  'hello' would not match
  'ohhh' would.</p>
  
  <p>I've tried doing things like:  </p>
  
  <pre><code>re.compile('(?!.*(.)\1{3,})^[a-zA-Z]*$') 
  re.compile('(\w)\1{5,}')
  </code></pre>
  
  <p>but neither seem to work.</p>