title: Regex remove everything after 2nd dash
body: <p>I have a large amount of data that I need to filter using Regex. The data consists of strings that look like this:</p>
  
  <pre><code>60166213
  
  60173866-4533
  
  60167323-9439-1259801
  
  NL170-2683-1262201
  
  60174710-1-A12-4
  </code></pre>
  
  <p>When I need them to look like this:</p>
  
  <pre><code>60166213
  
  60173866-4533
  
  60167323-9439
  
  NL170-2683
  
  60174710-1
  </code></pre>
  
  <p>How can I filter with regex to remove everything after and including the 2nd dash. The number of dashes varies, and I need to retain all strings 'as is' that do not contain more than one dash.</p>