title: short regex datetime split
body: <p>I'm trying to split the following:
  2010-07-30 10:10:50</p>
  
  <p>and I would like to ONLY end up with:</p>
  
  <p>2010</p>
  
  <p>07</p>
  
  <p>30</p>
  
  <p>normally with just the date,
  you regex with /-/</p>
  
  <p>however now I would like something as simple as that but now i get</p>
  
  <p>2010</p>
  
  <p>07</p>
  
  <p>30 10:10:50</p>
  
  <p>how can i get that last part + space out?</p>
  
  <p>Thank you so much!</p>
  
  <p>ps, right now I need this in PHP
  but later on I also need to implement this in JAVA</p>