title: how do i extract date from string using php
body: <p>I need to extract the date from a string, below is my code and the string.</p>
  
  <pre><code>$str = "Updated status to Masters - Software Engineering (Enrolled-
             Documents to Send) on 03/06/2014 14:10 by Rabih Haddad  .";
  
  
  if(preg_match_all('/.*([A-Za-z]{3,4}, [A-Za-z]{3,4} [\d]{1,2}, [\d]{4}).*/',$str,$matches))
  {
      print_r($matches);
  }
   else
    echo "not matched";
  </code></pre>
  
  <p>How can I extract <code>date(03/06/2014)</code> value from the string. </p>