title: How to explode date from a string using php preg_match and regex
body: <p>I am processing strings with a date somewhere in it. There are different ways the date can  appear in this string: </p>
  
  <p>"… 01.11.2009 18:00-21:00 …" or 
  "… 01.11.2009 18:00-02.11.2009 15:00 …" or 
  "… 01.11.2009 18:00 …" </p>
  
  <p>Regardless how the date appears I only need the beginning date "01.11.2009 18:00". So if there are two matches it's just the first one. How can I isolate/explode this from the full string in php. any idea?</p>
  
  <p>I guess I need to create a pattern with regex and then matching it with preg_match. Is this the way? Unfortunately I am not into regex very much. Could anyone help with getting my single date block from a random string?</p>