title: How do I get Vim to match a line not beginning with a seven-digit number?
body: <p>I have a file with about 1000 lines. All lines begin with a seven-digit number except for the occasional line. I need to catch these lines and actually join them with the previous line.</p>
  
  <p>I've managed to be able to match any line that begins with a seven-digit number by using the following regex pattern:</p>
  
  <pre><code>^\d\{7}
  </code></pre>
  
  <p>I can't seem to get it to match any line that <em>does not match</em> this pattern though, which is really what I'm after.</p>
  
  <p>As a second question that I'll embed into this one. Is it possible to have any lines that match (or do not match to stay consistent with what I'm trying to do) to join themselves to the previous line (as opposed to the <strong>J</strong> command that brings the next line up to the current one)?</p>
  
  <p>Thanks</p>