title: javascript shortest regex formatting account number
body: <p>The problem:
  In my database I keep some account numbers in form:</p>
  
  <p>PL83102044760000870200961284</p>
  
  <p>Now I have to format it like this:</p>
  
  <p>PL 83 1020 4476 0000 8702 0096 1284 </p>
  
  <p>I wrote simple js regex that do the job:</p>
  
  <pre><code>account.replace(/(\w{2})(\d{2})(\d{4})(\d{4})(\d{4})(\d{4})(\d{4})(\d{4})/g, '$1 $2 $3 $4 $5 $6 $7 $8');
  </code></pre>
  
  <p>But I fell this is somehow naive solution and this code can be refactored to avoid repetitions. Anyone can do this shorter?</p>