title: Regex match anything preceding a sequence of dots
body: <p>I'd like to make a regex that matches anything that is succeeded by four points or more:</p>
  
  <pre><code>asdf....... 
  </code></pre>
  
  <p>Would match to <code>asdf</code>.</p>
  
  <p>I've tried with:</p>
  
  <pre><code>.+?(?=\.{4,})
  </code></pre>
  
  <p>but it only discards the last four dots, so it matches <code>asdf...</code>.</p>
  
  <p>How can it be done?</p>