title: Regex to convert yyyymmdd to yyyy-mm-dd
body: <p>I want to convert this data format</p>
  
  <pre><code>20140102
  </code></pre>
  
  <p>to</p>
  
  <pre><code>2014-1-2
  </code></pre>
  
  <p>using regex.</p>
  
  <p>the pattern i have tried is as such:</p>
  
  <pre><code>([0-9]{4})([0-9][0-9])([0-9][0-9])
  </code></pre>
  
  <p>the problem i have is removing the 0.</p>
  
  <p>Please help, thank you!</p>